public ActionResult DestroyedCheckBookReport(int? page, int id = 1) { var fromDate = Request["fromDate"]; var toDate = Request["toDate"]; string column = Request["column"]; var creteria = Request["creteria"]; var item = Request["item"]; var reportGen = new ReportGenerator(); string rname = "Destroyed Check Books Report"; ViewBag.msgTitle = "Destroyed Check Books Report"; ViewBag.Title = "Destroyed Check Books Report"; ViewBag.pgId = id; var itemz = reportGen.getdestCheckBookReports(rname); //var itemz = reportGen.getdestmap(rname); var pageNumber = page ?? 1; var pageObj = itemz.ToPagedList(pageNumber, 25); ViewBag.pageObj = pageObj; return View(); }