예제 #1
0
        public LecturerStudentAnalyticsViewModel(IAuthService authService, ILecturerService lecturerService)
        {
            _authService     = authService;
            _lecturerService = lecturerService;

            selectedLecturer = _authService.authorisedUser;

            NoOfGraduatedStudents = selectedLecturer.Course == null ?
                                    0 :
                                    _lecturerService.GetGraduatedStudents(selectedLecturer.Course);

            LecturerResults = _lecturerService.GetLecturerResults(selectedLecturer);
        }