Please refer below code
var pdf="xxxxxxx";
$.ajax({
type: "post",
url: "/Corporate/SampleChangeSummary/PDF",
data: JSON.stringify(pdf),
contentType: 'application/json',
dataType: 'json',
error: function (status, xhr) {
}
});
[HttpPost]
public ActionResult PDF(object pdf)
{
.......
}
but it returning pdf is null. What is the problem? Any syntax mistake in my code?