Esempio n. 1
0
        public ActionResult AllOrderList(int?page)
        {
            const int pageSize   = 10; //for testing purpose, to be adjustetd
            int       pageIndex  = (page ?? 1) - 1;
            int       pageNumber = (page ?? 1);

            var allOrders = _orderProcessingService.GetAllOrders();//.ToPagedList(pageNumber, pageSize);

            var pagedList = allOrders.ToPagedList(pageNumber, pageSize);

            return(PartialView("_AllOrderList", pagedList));
        }