title: My list will be empty when POST the form
body: <p>I have some problem with the MVC, I'll try to describe. I have 2 class in my model.</p>
  
  <pre><code>public class ApplicationPermissionVM
      {
          public ApplicationPermission Permission { get; set; }
          public bool IsSelected { get; set; }
      }
  
  public class RoleAndPermissonsModel
  {
          //Constructor skipped
  
          public ApplicationRole ApplicationRole { get; set; }
          public IEnumerable&lt;ApplicationPermissionVM&gt; Permissions { get; set; }
  }
  </code></pre>
  
  <p>The second model is the main model, and I initialize the model in controller. The ApplicationRole is null and I have got 19 element in the list. When I POST the form the ApplicationRole member will be created, but the Permissions list will be empty so will lost all selection. If anyone knows what is the problem please write to me.
  Controller:</p>
  
  <pre><code>[HttpGet]
  public ActionResult NewRole()
  {
      _model = new RoleAndPermissonsModel();
      return View(_model);
  }
  
  [HttpPost]
  public ActionResult NewRole(RoleAndPermissonsModel newRole)
  {
      if (ModelState.IsValid)
      {
          var id = _applicationRoleService.AddNewRole(newRole.ApplicationRole);
          _applicationRoleService.AssignPermissionsToRole(newRole.SelectedItems, id);
      }
  
      return RedirectToAction("Index");
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@model EO.Core.WebUI.Models.RoleAndPermissonsModel
  @using (Html.BeginForm("NewRole", "PermissionRole", FormMethod.Post, new { id = "frmNewRole" }))
  {
      @Html.AntiForgeryToken()
      @Html.ValidationSummary(true)
  
      &lt;fieldset&gt;
          &lt;legend&gt;ApplicationRole&lt;/legend&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.ApplicationRole.Name)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.ApplicationRole.Name)
              @Html.ValidationMessageFor(model =&gt; model.ApplicationRole.Name)
          &lt;/div&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;th&gt;
                      @Html.DisplayNameFor(model =&gt; model.IsSelected)
                  &lt;/th&gt;
                  &lt;th&gt;&lt;/th&gt;
              &lt;/tr&gt;
  
              @foreach (var item in Model.Permissions)
              {
                  &lt;tr&gt;
                      &lt;td&gt;
                          @Html.EditorFor(modelItem =&gt; item.IsSelected)
                      &lt;/td&gt;
                      &lt;td&gt;
                          @Html.DisplayFor(modelItem =&gt; item.Permission.Name);
                      &lt;/td&gt;
                  &lt;/tr&gt;
              }
          &lt;/table&gt;
          &lt;p&gt;
              &lt;input type="submit" value="Save" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  }
  </code></pre>