I have this code in my view to hit one ActionResult
ClearFilters = function () {
$.get("/Mandate/Index/1");
window.location.href = '<%=Request.Url.Scheme + "://" + Request.Url.Authority + Request.Url.AbsolutePath%>';
}
My controller Method
Public ActionResult Index(int? id)
{
//some code
}
with this Code I am able to hit Index Action Result but I am not getting int id value 1?
is that something I am doing wrong here?
Thanks