javascript\jQuery:
> 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");
C# Mvc Index Controller
public class MyClass { public string Begin; public string End; } [AcceptVerbs(HttpVerbs.Post)] public ActionResult Index( string DateStart, MyClass []mass ) { Sys tem.Diagnostics.Debug.WriteLine(mass[0].Begin); }
how execute this code? thanks