title: Submitting Form in MVC 5 model is null in controller post method
body: <p>After post I am getting List in model is null
  my model is has a property which is the list of vwLog. </p>
  
  <pre><code>public class CreateLogViewModel
  {
      public List&lt;vwLog&gt; LogData;
  }
  </code></pre>
  
  <p>In view I used that model and used foreach loop to assign the value in text control</p>
  
  <pre><code>@model CreateLogViewModel
  
  @using (Html.BeginForm("CreateLog", "Log", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
  {
      foreach (var item in Model.LogData)
      {
          &lt;table&gt;            
              &lt;tr&gt;
                  &lt;td&gt;
                      @Html.HiddenFor(modelItem =&gt; item.LogID)
                      @Html.TextBoxFor(modelItem =&gt; item.AgencyBillingCode)
                  &lt;/td&gt;
                  &lt;td&gt;
                      @Html.TextBoxFor(modelItem =&gt; item.LicenseNumber)
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      }
      &lt;div class="col-xs-12" align="center"&gt;
          &lt;input class="btn btn-default" type="submit" name="Submit" value="Save" id="Submit"&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>My Controller is</p>
  
  <p>In Get method  I am assigning the value in LogData object which is the collection of vwlog.</p>
  
  <pre><code>public ActionResult CreateLog(CreateLogViewModel model)
  {
     model.LogData = GetDate();
     return View(model);
   }
  </code></pre>
  
  <p>I update some value of the list on the screen and try to save  that, but I am getting model.LogData null in Post.</p>
  
  <pre><code>[HttpPost]
  public ActionResult CreateLog(CreateLogViewModel model, string submit)
  {
      if (model.LogData != null)
      { 
          do this...
      }
  }
  </code></pre>
  
  <p>I update some value of the list on the screen and try to save  that, but I am getting model.LogData null in Post. model is not null, but the collection object is null.
  Please let me know where I am wrong.</p>