// GET: Employee public ActionResult Index(int?pageIndex) { blResultEmployee = employeeManager.GetAllEmployees(); if (blResultEmployee.BlResultList != null) { listPaginationEmployeeRecords = ListPagination <Employee> .Create(blResultEmployee.BlResultList, pageIndex ?? 1, 3); } return(View(listPaginationEmployeeRecords)); }
public ActionResult Index(int?pageIndex) { blResultPaymentRecord = payComputationManager.GetAllPayments(); ListPagination <PaymentRecord> listPaginationPaymentRecords = null; if (blResultPaymentRecord.BlResultList != null) { listPaginationPaymentRecords = ListPagination <PaymentRecord> .Create(blResultPaymentRecord.BlResultList, pageIndex ?? 1, 3); } return(View(listPaginationPaymentRecords)); }