Пример #1
0
        public ActionResult Index(int pageNumber = 1)
        {
            //PagedList<ChargeModels> lst = context.Charge.OrderBy(p => p.Id).ToPagedList(pageNumber, pageSize);
            IEnumerable <ChargeModels> lst = chargeService.ShowAllRecordsByPagination(pageNumber, pageSize);

            return(View(lst));
        }