title: How do I return List or Collection to Controller from View in MVC 3?
body: <p>Someone please help me return this list properly from my view. I don't see why I'm returning null for my fieldModelList I try to pass to the controller...</p>
  
  <p>Here is my view:</p>
  
  <pre><code>@model List&lt;Regions.SOA.UI.CopyBookSchemaCreator.Models.FieldModel&gt;
  
  &lt;script type="text/javascript" src="~/Scripts/jquery-ui-1.8.11.min.js"&gt;&lt;/script&gt;
  
  @using (Html.BeginForm("GetResponse", "TestMethods", FormMethod.Post))
  {
  
  &lt;table id="tblMethods"&gt;
      &lt;tr&gt;
          &lt;th&gt;
              Property Name
          &lt;/th&gt;
          &lt;th&gt;
              Request
          &lt;/th&gt;
      &lt;/tr&gt;
  
      @foreach (FieldModel fieldModel in Model) 
      {
          &lt;tr&gt;
              &lt;td&gt;
                  @Html.DisplayFor(m =&gt; fieldModel.PropertyName)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.TextBoxFor(m =&gt; fieldModel.PropertyValue)
              &lt;/td&gt;
          &lt;/tr&gt;
      }
  
  &lt;/table&gt;
  
  &lt;div&gt;
      &lt;input type="submit"/&gt;       
  &lt;/div&gt;
  </code></pre>
  
  <p>and here is my controller:</p>
  
  <pre><code>    [HttpPost]
      public ActionResult GetResponse(List&lt;FieldModel&gt; fieldModelList)
      {
          return GetResponse(fieldModelList);   
      }
  </code></pre>
  
  <p>I am hitting the HttpPost method but if I place a breakpoint just inside it, I am returning null for the fieldModelList right off the bat, which I was hoping would be a list of the values I entered into the texboxes on the view that is of model FieldModel... </p>
  
  <p>I think something is wrong with my logic versus my syntax, or as maybe as well as my syntax, but basically what I want to do is return back a list of type FieldModel with each corresponding PropertyName and PropertyValue to the controller. I noticed I am not passing any kind of id parameter in my BeginForm statement in the view. Do I need one here? </p>
  
  <p>Just in case, here is my model class for FieldModel:</p>
  
  <pre><code>namespace Regions.SOA.UI.CopyBookSchemaCreator.Models
  {
      public class FieldModel
      {
          [Display(Name = "Property")]
          public string PropertyName { get; set; }
  
      [Display(Name = "Value")]
          public string PropertyValue { get; set; }
      }
  }
  </code></pre>