예제 #1
0
        // 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));
        }
예제 #2
0
        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));
        }