title: submit a list become null in the post + MVC
body: <p>I have a ViewModel:</p>
  
  <pre><code>public class RegistrationViewModel
  {
      public string Country { get; set; }
      public ConfigurationParamValue CountryParam { get; set; }
      public string Civility { get; set; }
      public ConfigurationParamValue CivilityParam { get; set; }
      [FirstNameValidator(Category = "Registration", IsLocal = false )]
      public string FirstName { get; set; }
      public ConfigurationParamValue FirstNameParam { get; set; }
      [LastNameValidator(Category = "Registration", IsLocal = false)]
      public string LastName { get; set; }
      public List&lt;int&gt; Days { get; set; }
      public int SelectedDay{ get; set; }
      public List&lt;Month&gt; Months { get; set; }
      public Month SelectedMonth { get; set; }
      public List&lt;int&gt; Years { get; set; }
      public int SelectedYear { get; set; }
      public DateTime BirthDate { get; set; }
  }
  </code></pre>
  
  <p>I create a view with this viewmodel :</p>
  
  <pre><code>@model Registration.Front.Web.Models.RegistrationViewModel
  
  @{
      ViewBag.Title = "Index";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  
  @using (Html.BeginForm()) {
      @Html.AntiForgeryToken()
      @Html.ValidationSummary(true)
  
      &lt;fieldset&gt;
          &lt;legend&gt;RegistrationViewModel&lt;/legend&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Country)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Country)
              @Html.ValidationMessageFor(model =&gt; model.Country)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Civility)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Civility)
              @Html.ValidationMessageFor(model =&gt; model.Civility)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.FirstName)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.FirstName)
              @Html.ValidationMessageFor(model =&gt; model.FirstName)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.LastName)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.LastName)
              @Html.ValidationMessageFor(model =&gt; model.LastName)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.BirthDate)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.DropDownListFor(model =&gt; model.SelectedDay, new SelectList(Model.Days))
              @Html.ValidationMessageFor(model =&gt; model.BirthDate)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Occupation)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Occupation)
              @Html.ValidationMessageFor(model =&gt; model.Occupation)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.ZipCode)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.ZipCode)
              @Html.ValidationMessageFor(model =&gt; model.ZipCode)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Email)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Email)
              @Html.ValidationMessageFor(model =&gt; model.Email)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Password)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Password)
              @Html.ValidationMessageFor(model =&gt; model.Password)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.CGV)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.CGV)
              @Html.ValidationMessageFor(model =&gt; model.CGV)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.Optin)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.Optin)
              @Html.ValidationMessageFor(model =&gt; model.Optin)
          &lt;/div&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.LabelFor(model =&gt; model.CNIL)
          &lt;/div&gt;
          &lt;div class="editor-field"&gt;
              @Html.EditorFor(model =&gt; model.CNIL)
              @Html.ValidationMessageFor(model =&gt; model.CNIL)
          &lt;/div&gt;
  
          &lt;p&gt;
              &lt;input type="submit" value="Create" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  }
  
  &lt;div&gt;
      @Html.ActionLink("Back to List", "Index")
  &lt;/div&gt;
  </code></pre>
  
  <p>this is My contoller: </p>
  
  <pre><code>public ActionResult Index()
          {
          List&lt;int&gt; listDays = new List&lt;int&gt;(){1, 2, 3};
          return View(new RegistrationViewModel() { Days=listDays });
          }
  
  [HttpPost]
  public ActionResult Index( RegistrationViewModel rvm)
         {
         if (ModelState.IsValid)
            { return RedirectToAction("Welcome"); }
  
         return View(rvm);
         }
  
  public ActionResult Welcome()
        {
        return View();
        }
  </code></pre>
  
  <p>My problem is in the post, the property Days of the viewmodel is null!!!!! How can i correct this?</p>