0
How to check error on a call return Jquery
by ajax for a controller
. This return did not come formatted as you would like, just checking the custom fields.
$.ajax({
type: "POST",
dataType: "json",
url: "MyController/Create",
data: JSON.stringify(myObject),
success: function (result) {
if(result.error>0)
{
alert("Error:" + result.ErrorMessage );
}
});