here is the controller
public ViewResult AddNewRow(ProjectBudgetModel model)
{
//Some oprations goes here on the passed model the return to the same view
return View("AddNewProjectBudget", model);
}
here is the view which has the ajax call like
$.ajax({
url: '@Url.Action("AddNewRow", "ProjectBudget")',
type: 'post',
data: {model: '@Model'},
contentType: 'application/json; charset=utf-8;',
dataType: 'json',
success: function (response) {
alert(response.success)
return;
},
error: function (x) {
alert(x.status);
}
});
@Model which is passed in the data header in the ajax call is ProjectBudgetModel
something goes wrong here specifically while i pass the data to the controller it even doesn't hit the brekpoint of the addNewRow function in controller
any help?