title: MVC4 DropdownFor not submitting selected value
body: <p>ViewModel</p>
  
  <pre><code>namespace VendorFinancing.Web.Models
  {
      public class CreateApplicationViewModel
      {
          public Application Application { get; set; }
  
          public List&lt;Equipment&gt; Equipments { get; set; }
  
          public string SelectedVendorId;
  
  
          public IEnumerable&lt;SelectListItem&gt; VendorList { get; set; }
      }
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public ActionResult Create()
          {
              var model = new CreateApplicationViewModel();
  
  
  
              model.VendorList = new List&lt;SelectListItem&gt;() { new SelectListItem() { Text = "London", Value = "1" }, 
                          new SelectListItem() { Text = "New York", Value="2" } };
  
              return View(model);
          }
  
  
  [HttpPost]
          public ActionResult Create(CreateApplicationViewModel model)
          {
  
              return View(model);
          }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>@using (Html.BeginForm("Create", "Application", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  {
  
      &lt;div class="form-horizontal"&gt;
          &lt;h2&gt;Submit Application &lt;/h2&gt;
          &lt;hr /&gt;
          @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  
          &lt;h3&gt;Pick Vendor&lt;/h3&gt;
  
          &lt;div class="form-group"&gt;
              &lt;div class="col-md-2"&gt;
                  @Html.LabelFor(c =&gt; c.SelectedVendorId)
              &lt;/div&gt;
  
              &lt;div class="col-md-10"&gt;
                  @Html.DropDownListFor(model =&gt; model.SelectedVendorId, Model.VendorList)
              &lt;/div&gt;
  
          &lt;/div&gt;
  
  
  
          &lt;div class="form-group"&gt;
              &lt;div class="col-md-offset-2 col-md-10 pull-left"&gt;
                  &lt;input type="submit" value="Create" class="btn btn-default pull-left" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>This is very basic create. When form is submitted <code>SelectedVendorId</code> is still null. I tried the same example in different it is still working. I am not able to figure out the reason. Any help is appriciated. </p>
  
  <p>EDIT: found my mistake <code>SelectedVendorId</code> didnt have get and set. After making it a property it worked.</p>