Model is Null while passing by Ajax Call MVC?
问题 I am new bird in MVC. I want to pass the Model into the Ajax call, i write the following code to do so. But it always passing NULL to all properties. $("#btnsubmit").click(function () { alert('hello'); var productModel = { Name: 'ram@mailinator.com', Address: "Chai" }; $.ajax({ type: "POST", url: '@Url.Action("ContactDistributor", "AjaxCallTest")', contentType: "application/json; charset=utf-8", data: JSON.stringify({ model: productModel }), dataType: "json", success: function () { alert(