I need to use JSON NET serializer.
SiteModelBinder
internal class SiteModelBinder : System.Web.Mvc.IModelBinder
{
public object BindModel(ControllerC
correct ajax call
$.ajax({
type: "POST",
url: "/Site/Update",
dataType: "json",
data: {JSON.stringify(filtersData) }, //without name because I'll use custom ModelBinder
contentType: "application/json; charset=utf-8",
traditional: true,
success: function (data) {
alert("ok");
},
error:function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});