title: Create drop down list from List ASP.NET MVC
body: <p>I have strongly typed view model and in one of class object I am passing list of options that I need to present in @html.Dropdownlist </p>
  
  <h2>View Model</h2>
  
  <pre><code> public class CreateCampaign_VM
  {
      public MarketingCampaign MarketingCampaign { get; set; }
  
      public List&lt;MarketingCampaignType&gt; MarketingCampaignType { get; set; }
  }
  </code></pre>
  
  <h2>Controller method</h2>
  
  <pre><code> private CreateCampaign_VM GetCampaignObject()
      {
          CreateCampaign_VM _CampaignObject = new CreateCampaign_VM();
  
  
          _CampaignObject.MarketingCampaignType.Add(new MarketingCampaignType {
              CampaignTypeID = 1,
              CampaignTypeTitle = "Email",
              Description = "Email"
          });
  
          _CampaignObject.MarketingCampaignType.Add(new MarketingCampaignType
          {
              CampaignTypeID = 2,
              CampaignTypeTitle = "Text",
              Description = "Text"
          });
  
          _CampaignObject.MarketingCampaignType.Add(new MarketingCampaignType
          {
              CampaignTypeID = 3,
              CampaignTypeTitle = "Post",
              Description = "Post"
          });
  
          return _CampaignObject;
      }
  </code></pre>
  
  <p>...</p>
  
  <pre><code> public ActionResult CreateCampaign_Title()
      {
          return PartialView("CreateCampaign_Title_Partial", GetCampaignObject());
      }
  </code></pre>
  
  <h2>Razor view</h2>
  
  <pre><code>@model App.Business.Entities.CreateCampaign_VM
    @using (Html.BeginForm("CreateCampaign_Title", "Campaign", FormMethod.Post, new { id = "CreateCampaignTitleForm" }))
          {
           .....
            @Html.DropDownListFor(// 'MarketingCampaignType object' need help here 
           //...
         }
  </code></pre>