title: Serialization of MVC model with partial class won't work
body: <p>I've passed all day long with a serialization problem with nested properties (an array in particular) and MVC.
  I've created a simple code to show you a simplification. I premit I've just googled and tried even to put the <code>Items[0].Id</code> as the name of the html helper.</p>
  
  <p>By the way here-s the code *maybe you can provide me a working and clean solution.</p>
  
  <pre><code>@using (Ajax.BeginForm("Salva", "Home", new AjaxOptions(){ HttpMethod = "POST"}))
  {
  &lt;div class="row"&gt;
      @for (int i = 0; i &lt; Model.Items.Length; i++)
      {
          @Html.Partial("_Item", Model.Items[i])
      }
  &lt;/div&gt;
  &lt;input value="click" type="submit"/&gt;
  }
  </code></pre>
  
  <p>The models</p>
  
  <pre><code>namespace WebApplication2.Models
  {
  public class SomeClass
  {
      public Internal[] Items { get; set; }
  }
  
  public class Internal
  {
      public DateTime? Date { get; set; }
  
      public int Id { get; set; }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and here's the controller</p>
  
  <pre><code> public class HomeController : Controller
  {
      public ActionResult Index()
      {
          var model = new SomeClass();
  
          var lst = new List&lt;Internal&gt;();
  
          for (int i = 0; i &lt; 3; i++)
          {
              lst.Add(new Internal{Id = i});
          }
          model.Items = lst.ToArray();
          return View(model);
      }
  
  
      [HttpPost]
      public ActionResult Salva(SomeClass model)
      {
          return Json(true);
      }
  }
  </code></pre>
  
  <p>and here's _Item.cshtml</p>
  
  <pre><code>    @model namespace.Internal
  
       Html.TextFor(m=&gt;m.Date)
  </code></pre>
  
  <p>I hoped that creating a simple priject would clean my doubt and see where I was doing wrong in the real project but with no luck... what am I doing wrong?</p>
  
  <p>Thanks
  <a href="https://i.stack.imgur.com/J3V0a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3V0a.png" alt="enter image description here"></a></p>