Beispiel #1
0
 public DashboardModel GetAdminDashboard()
 {
     try
     {
         return(new DashboardModel
         {
             AdminTotalSchools = _schoolRepository.CountTotalSchools(),
             AdminTotalDepartments = _departmentRepository.CountTotalDepartments(),
             AdminTotalProgrammes = _programmeRepository.CountTotalProgrammes(),
             AdminTotalCourses = _courseRepository.CountTotalCourses(),
             AdminTotalSessionSemester = _sessionSemesterRepository.CountTotalSessionSemesters(),
             AdminTotalLecturers = _lecturerRepository.CountTotalLecturers(),
             AdminTotalStudents = _studentRepository.CountTotalStudents()
         });
     }
     catch (Exception e)
     {
         return(default);