This is my controller:
public ActionResult GetFilterUsers(int pageNumber)
{
//......
}
This is my js code:
$('#users-data-table').DataTable({
serverSide: true,
ajax: {
url: "@(Url.Action("GetFilterUsers", "Users", new { area = "Admin" }))/" + table.page.info().page,
type: "GET"
}
});
this string is now working
url: "@(Url.Action("GetFilterUsers", "Users", new { area = "Admin" }))/" + table.page.info().page,
How can I pass table.page.info().page into my controller?