I have filled object SearchHomeModel and want to pass this object to controller via ajax request. My controller is the following prototype:
public ActionResult DataTableUserList(SearchHomeModel search, int iDisplayStart, int iDisplayLength, string sEcho)
and I concat url string for it:
url = "/User/DataTableUserList?SearchHomeModel.FirstName=" + Model.SearchKeys.FirstName +
"&SearchHomeModel.LastName=" + Model.SearchKeys.LastName +
"&SearchHomeModel.Title=" + Model.SearchKeys.Title +
"&SearchHomeModel.Company=" + Model.SearchKeys.Company;
(and then pass this url to ajax call)
when I see in debugger call DataTableUserList I see that iDisplayStart has value, but search is null. How to pass this object in my case? Thanks