예제 #1
0
        public StudentEnrollmentsViewModel(IAuthService authService, IUsersService usersService, IModulesService modulesService, ICoursesService coursesService)
        {
            _authService    = authService;
            _usersService   = usersService;
            _modulesService = modulesService;
            _coursesService = coursesService;

            selectedUser  = _authService.authorisedUser;
            allModuleRuns = _modulesService.GetAllModuleRuns().Result.Select(x => x.ToIdentifier()).ToList();
            allCourses    = _coursesService.GetAllCourses().Result.Select(x => x.ToIdentifier()).ToList();
        }