title: mvc form not posting table date
body: <p>I am sure I am missing something very obvious, or I am not understanding what I have read so far. I have a from that contains a table of data, 2 fields of which need to be editable. The data received by the form is <code>IEnumerable</code>. However, when the controller function receiving the post data, instead of it receiving an <code>IEnumerable</code>, I get nothing. If I receive just the raw data type, I get the a single instance of the object with the correct id field and all other fields are empty. Could someone please point me oin the right direction?</p>
  
  <h2>MODEL: (Generated by EF Model first)</h2>
  
  <pre><code>Partial Public Class QuoteBundlePackage_Result
      Public Property id As Integer
      Public Property employeeId As Nullable(Of Integer)
      Public Property employeeName As String
      Property bundleId As Nullable(Of Integer)
      Public Property bundleDescription As String
      Public Property packageId As Nullable(Of Integer)
      Public Property packageContents As String
  End Class
  </code></pre>
  
  <h2>View:</h2>
  
  <pre><code>@ModelType IEnumerable(Of gbip_new.QuoteBundlePackage_Result)
  
  @Using Html.BeginForm()
  @Html.ValidationSummary(True)
  &lt;fieldset&gt;      
  &lt;legend&gt;Quote&lt;/legend&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.employeeId)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.employeeName)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.bundleId)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.bundleDescription)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.packageId)
          &lt;/th&gt;
          &lt;th&gt;
              @Html.DisplayNameFor(Function(model) model.packageContents)
          &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  
      @For Each item In Model
          Dim currentItem = item
          Html.HiddenFor(Function(modelItem) currentItem.id)
          @&lt;tr&gt;
              &lt;td&gt;
                  @Html.DisplayFor(Function(modelItem) currentItem.employeeId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(Function(modelItem) currentItem.employeeName)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.EditorFor(Function(modelItem) currentItem.bundleId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(Function(modelItem) currentItem.bundleDescription)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.EditorFor(Function(modelItem) currentItem.packageId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(Function(modelItem) currentItem.packageContents)
              &lt;/td&gt;
          &lt;/tr&gt;
      Next
  &lt;/table&gt;
  &lt;p&gt;            
      &lt;input id="Submit1" type="submit" value="submit" /&gt;
  &lt;/p&gt;
  &lt;/fieldset&gt;
  End Using
  </code></pre>
  
  <h2>Controller</h2>
  
  <pre><code>    &lt;HttpPost()&gt; _
      Function QuoteBundlePackage(ByVal eqDetails As IEnumerable(Of Global.gbip_new.QuoteBundlePackage_Result)) As ActionResult
          If ModelState.IsValid Then
  
              'Do stuff
  
              Return RedirectToAction("Index")
          End If
  
          Return View(eqDetails)
      End Function
  </code></pre>