public ActionResult Management(Dictionary <string, string> queryvalues) { int page = queryvalues.ContainsKey("page") ? Convert.ToInt32(queryvalues["page"]) : 1; if (Request.IsAjaxRequest()) { return(PartialView("Management_PageList", ManagerInfoBLL.GetListByPage(page))); } PagedList <ManagerInfo> model = ManagerInfoBLL.GetListByPage(page); return(View(model)); }