I have the following jquery code to call a POST method in Asp.net core Controller
$.ajax({
url: '@Url.Action("GetItemsForRelease", "PointOfSales")',
data: { requestModel: TFObj },
type: 'POST',
contentType: "application/json; charset=utf-8",
dataType: "html",
success: function (responsedata) {
$("#releaseItemsPush").html(responsedata);
},
error: function (error) {
console.log(error);
}
});
but following controller action shows null object
[HttpPost]
public ActionResult GetItemsForRelease(RequestModel requestModel)
{
return PartialView("_partialReleaseItem", requestModel);
}