Beispiel #1
0
 public StudentService(
     IStudentRepository studentRepository,
     ICourseRepository courseRepository,
     IStudentCourseRepository studentCourseRepository)
 {
     (this.studentRepository, this.courseRepository, this.studentCourseRepository) = (studentRepository, courseRepository, studentCourseRepository);
 }
Beispiel #2
0
 public SCsController(IMapper mapper, IStudentCourseRepository studentCourseRepository,
                      IStudentRepository studentRepository,
                      ICourseRepository courseRepository)
 {
     _mapper = mapper;
     _studentCourseRepository = studentCourseRepository;
     _studentRepository       = studentRepository;
     _courseRepository        = courseRepository;
 }
 public HomeAPIController(IStudentRepository studentRepository,
                          ICourseRepository courseRepository,
                          IRoleRepository roleRepository,
                          IStudentCourseRepository studentCourseRepository)
 {
     _studentRepository       = studentRepository;
     _courseRepository        = courseRepository;
     _roleRepository          = roleRepository;
     _studentCourseRepository = studentCourseRepository;
 }
Beispiel #4
0
 public CourseController(ICourseRepository courseRepository,
                         IStudentCourseRepository studentCourseRepository,
                         IRoleRepository roleRepository,
                         UserManager <ApplicationUser> userManager)
 {
     _courseRepository        = courseRepository;
     _studentCourseRepository = studentCourseRepository;
     _roleRepository          = roleRepository;
     _userManager             = userManager;
 }
Beispiel #5
0
 public UserManager(IUserRepository userRepository, IStudentRepository studentRepository, ILecturerRepository lecturerRepository,
                    IStudentCourseRepository studentCourseRepository, ILecturerCourseRepository lecturerCourseRepository,
                    ICourseRepository courseRepository)
 {
     _userRepository           = userRepository;
     _studentRepository        = studentRepository;
     _lecturerRepository       = lecturerRepository;
     _lecturerCourseRepository = lecturerCourseRepository;
     _studentCourseRepository  = studentCourseRepository;
     _courseRepository         = courseRepository;
 }
Beispiel #6
0
 public CourseManager(ICourseRepository courseRepository,
                      IStudentCourseRepository studentCourseRepository,
                      ILecturerCourseRepository lecturerCourseRepository,
                      IStudentRepository studentRepository,
                      ILecturerRepository lecturerRepository)
 {
     _courseRepository         = courseRepository;
     _studentCourseRepository  = studentCourseRepository;
     _lecturerCourseRepository = lecturerCourseRepository;
     _studentRepository        = studentRepository;
     _lecturerRepository       = lecturerRepository;
 }
 public StudentCourseController(
     IMapper mapper,
     ILoggerManager logger,
     IStudentCourseRepository studentCourseRepository,
     IEvaluationStudentCourseRepository evaluationStudentCourseRepository,
     ICategoryRepository categoryRepository)
 {
     _mapper = mapper;
     _logger = logger;
     _studentCourseRepository           = studentCourseRepository;
     _categoryRepository                = categoryRepository;
     _evaluationStudentCourseRepository = evaluationStudentCourseRepository;
 }
Beispiel #8
0
 public StaffController(ICoreRepository coreRepository, IAccountRepository accountRepository,
                        IStaffRepository staffRepository, IGeneralHelper generalHelper,
                        IStaffCourseRepository staffCourseRepository, IStudentCourseRepository studentCourseRepository, ISemesterRepository semesterRepository, IAdminUnitRepository adminUnitRepository)
     : base(coreRepository, generalHelper)
 {
     _coreRepo           = coreRepository;
     _accountRepo        = accountRepository;
     _staffRepo          = staffRepository;
     _generalHelper      = generalHelper;
     _staffCourseRepo    = staffCourseRepository;
     _studentCourseRepo  = studentCourseRepository;
     _semesterRepository = semesterRepository;
     _adminUnitRepo      = adminUnitRepository;
 }
Beispiel #9
0
 public StudentController(IAccountRepository accountRepository, ICoreRepository coreRepository, IStudentRepository studentRepository, IGeneralHelper generalHelper, ISemesterRepository semesterRepository, IAdminUnitRepository adminUnitRepository, IStaffRepository staffRepository, IStudentsHelper studentsHelper, IStudentCourseRepository studentCourseRepository)
     : base(coreRepository, generalHelper)
 {
     _studentRepo              = studentRepository;
     _semesterRepo             = semesterRepository;
     _adminUnitRepo            = adminUnitRepository;
     _accountRepository        = accountRepository;
     _staffRepo                = staffRepository;
     _studentsHelper           = studentsHelper;
     _studentCourseRepository  = studentCourseRepository;
     UserManager               = new ApplicationUserManager(new UserStore(accountRepository, coreRepository));
     UserManager.UserValidator = new UserValidator <IdentityUser, int>(UserManager)
     {
         AllowOnlyAlphanumericUserNames = false
     };
 }
Beispiel #10
0
        public UtilsApiController(ICoreRepository coreRepository, IGeneralHelper generalHelper,

                                  IUserManagementRepository userManagementRepository,
                                  IStudentRepository studentRepository, IStudentCourseRepository studentCourseRepository, ISemesterRepository semesterRepository, IStaffRepository staffRepository, IAccountRepository accountRepository
                                  )
        {
            _coreRepository           = coreRepository;
            _generalHelper            = generalHelper;
            _userManagementRepository = userManagementRepository;
            _studentRepository        = studentRepository;
            _semesterRepository       = semesterRepository;
            _studentCourseRepository  = studentCourseRepository;
            _accountRepository        = accountRepository;
            _staffRepository          = staffRepository;
            UserManager = new ApplicationUserManager(new UserStore(accountRepository, coreRepository));
            UserManager.UserValidator = new UserValidator <IdentityUser, int>(UserManager)
            {
                AllowOnlyAlphanumericUserNames = false
            };
        }
Beispiel #11
0
 public StudentsController(ApplicationDbContext context,
                           IStudentRepository studentRepository,
                           IDepartmentRepository departmentRepository,
                           IAddressRepository addressRepository,
                           IWebHostEnvironment hostingEnvironment,
                           ICoursesRepository coursesRepository,
                           IStudentCourseRepository studentCourseRepository,
                           ILogger <StudentsController> logger,
                           UserManager <ApplictionUser> userManger)
 {
     this.context                 = context;
     this.studentRepository       = studentRepository;
     this.departmentRepository    = departmentRepository;
     this.addressRepository       = addressRepository;
     this.hostingEnvironment      = hostingEnvironment;
     this.coursesRepository       = coursesRepository;
     this.studentCourseRepository = studentCourseRepository;
     this.logger     = logger;
     this.userManger = userManger;
 }
Beispiel #12
0
 public CourseController(
     IDateTimeRepository datetimeRepository,
     IRepository2 <Course> courseRepository,
     IRepository2 <PhotoAlbum> photoAlbumRepository,
     IRepository <CourseCategory> courseCategoryRepository,
     ICourseService courseService,
     ICurriculumRepository curriculumRepository,
     IStudentCourseRepository studentCourseRepository,
     IRepository <StudentScore> studentScoreRepository,
     IConfigurationRepository configurationRepository,
     IPhotoAlbumService photoAlbumService,
     IRepository <Photo> photoRepository,
     ICurriculumService curriculumService,
     IStudentCourseService studentCourseService,
     IStudentScoreService studentScoreService,
     IBannerService bannerService,
     IRepository <Banner> bannerRepository,
     IRepository <Handout> handoutRepository,
     IHandoutService handoutService)
 {
     this._datetimeRepository       = datetimeRepository;
     this._courseRepository         = courseRepository;
     this._photoAlbumRepository     = photoAlbumRepository;
     this._courseCategoryRepository = courseCategoryRepository;
     this._courseService            = courseService;
     this._curriculumRepository     = curriculumRepository;
     this._studentCourseRepository  = studentCourseRepository;
     this._studentScoreRepository   = studentScoreRepository;
     this._configurationRepository  = configurationRepository;
     this._photoAlbumService        = photoAlbumService;
     this._photoRepository          = photoRepository;
     this._curriculumService        = curriculumService;
     this._studentCourseService     = studentCourseService;
     this._studentScoreService      = studentScoreService;
     this._bannerService            = bannerService;
     this._bannerRepository         = bannerRepository;
     this._handoutRepository        = handoutRepository;
     this._handoutService           = handoutService;
 }
Beispiel #13
0
 public CourseService(IRepository2 <Course> courseRepository, IStudentCourseRepository studentCourseRepository)
 {
     this._userManager             = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new SwuDBContext()));
     this._courseRepository        = courseRepository;
     this._studentCourseRepository = studentCourseRepository;
 }
 public StudentManager(IStudentRepository studentRepository, IStudentCourseRepository studentCourseRepository, ICourseRepository courseRepository)
 {
     _studentRepository       = studentRepository;
     _studentCourseRepository = studentCourseRepository;
     _courseRepository        = courseRepository;
 }
Beispiel #15
0
 public StudentRepository(ApplicationDbContext context, IStudentCourseRepository studentCourseRepository)
 {
     this.context = context;
     this.studentCourseRepository = studentCourseRepository;
 }
Beispiel #16
0
 public StudentService(IStudentRepository studentRepository,
                       IStudentCourseRepository studentCourseRepository)
 {
     this.studentRepository       = studentRepository;
     this.studentCourseRepository = studentCourseRepository;
 }
 public StudentCourseService(IStudentCourseRepository _studentCourseRepository)
 {
     studentCourseRepository = _studentCourseRepository;
 }
Beispiel #18
0
 public RegistrationController(IStudentCourseRepository studentCourses, ICourseRepository courses, IStudentRepository students)
 {
     _studentCourses = studentCourses;
     _courses        = courses;
     _students       = students;
 }
Beispiel #19
0
 public GradeController(IStudentCourseRepository repo)
 {
     _repo = repo;
 }
Beispiel #20
0
 public StudentCoursesController(IStudentCourseRepository studentCourseRepository)
 {
     this.studentCourseRepository = studentCourseRepository;
 }
 public CourseService(ICourseRepository courseRepository,
                      IStudentCourseRepository studentCourseRepository)
 {
     this.courseRepository        = courseRepository;
     this.studentCourseRepository = studentCourseRepository;
 }
Beispiel #22
0
 public StudentController(IStudentCourseRepository sc)
 {
     _sc = sc;
 }