// GET: /SecretaryDashboard/PatientManagement/patientList public ActionResult patientList(int pageNumber = 0) { int pageSize = 10; int clinecID = getUserCurrentClinecID(); int itemTotal = patientRepository.getPatientTotal(clinecID); patientListViewModelWrap patientlidstWrap = new patientListViewModelWrap(); patientlidstWrap.pagingInfoHolder = new PagingInfoHolder { ItemTotal = itemTotal, pageNumber = pageNumber, pageSize = pageSize }; patientlidstWrap.patientList = patientRepository.getPatientList(pageNumber, pageSize, clinecID); if (patientlidstWrap.patientList == null) { return(HttpNotFound()); } return(View(patientlidstWrap)); }
// GET: /DoctorDashboard/PatientManagement/patientList public ActionResult patientList(int pageNumber = 0) { int pageSize = 10; int clinecID = getUserCurrentClinecID(); int doctorID = getDoctorIDbyUserID(); int itemTotal = patientRepository.getPatientTotalForDoctor(clinecID, doctorID); //areaName = "DoctorDashboard", controllerName = "PatientManagement", ActionName = "patientList", patientListViewModelWrap patientlidstWrap = new patientListViewModelWrap(); patientlidstWrap.pagingInfoHolder = new PagingInfoHolder { ItemTotal = itemTotal, pageNumber = pageNumber, pageSize = pageSize }; patientlidstWrap.patientList = patientRepository.getPatientListForDoctor(pageNumber, pageSize, clinecID, doctorID); //if (patientList == null) // return HttpNotFound(); return(View(patientlidstWrap)); }