public ActionResult Index(int page = 1, string customerID = "", int employeeID = 0, int shipperID = 0) { var model = new OrderPaginationResult() { Page = page, PageSize = 83, RowCount = ReportBLL.Order_Count(page, 83, customerID, employeeID, shipperID), Data = ReportBLL.Order_List(page, 83, customerID, employeeID, shipperID), customerID = customerID, employeeID = employeeID, shipperID = shipperID }; return(View(model)); }
// GET: Order public ActionResult Index(int page = 1, string searchValue = "", string ShipperCountry = "") { int pageSize = 5; int rowCount = 0; List <OrderNameToID> ListOfOrder = OrderBLL.ListOfOrders(page, pageSize, searchValue, ShipperCountry, out rowCount); var model = new OrderPaginationResult() { Page = page, PageSize = pageSize, RowCount = rowCount, SearchValue = searchValue, ShipperCountry = ShipperCountry, Data = ListOfOrder }; return(View(model)); }