title: Asp.net Mvc Ajax Json (post Array)
body: <p>javascript\jQuery:</p>
  
  <pre><code> var items = new Array();
  
   var obj { Begin: "444", End: "end" };
  
   items.push(obj);
   items.push(obj);
  
    var request = {
               DateStart: $("#DateStart").val(),
               mass: items
           };
  
  
   $.post("/Home/Index", request, null,
   "json");
  </code></pre>
  
  <p>C# Mvc Index Controller</p>
  
  <pre><code> public class MyClass
       {
          public string Begin;
          public string End;
       }
  
       [AcceptVerbs(HttpVerbs.Post)]        
       public ActionResult Index(            
           string DateStart,            
           MyClass []mass)
       {
           System.Diagnostics.Debug.WriteLine(mass[0].Begin);
       }
  </code></pre>
  
  <p>how to execute this code? thanks.</p>