public StudentController(IGenericRepository repository, IMapper<Student, ProfileModel> studentToProfileModelMapper, IMapper<Student, IndexModel> studentToStudentIndexModelMapper, IMapper<NameModel, Student> studentNameToStudentMapper, IMapper<HomeAddressModel, StudentAddress> studentHomeAddressToStudentMapper, AzureStorageUploader fileUploader, IStudentRepository studentRepository, IMapper<EditableStudentBiographicalInfoModel, Student> studentBiographicalInfoToStudentMapper, IParentRepository parentRepository, IMapper<EditProfileParentModel, Parent> editProfileParentModelToParentMapper, ProgramStatusModelToProgramStatusForEditMapper programStatusModelToProgramStatusForEditMapper, EditAcademicDetailModelToStudentAcademicDetailMapper editAcademicDetailModelToStudentAcademicDetailMapper) { _repository = repository; _studentToProfileModelMapper = studentToProfileModelMapper; _studentToStudentIndexModelMapper = studentToStudentIndexModelMapper; _fileUploader = fileUploader; _studentRepository = studentRepository; _studentBiographicalInfoToStudentMapper = studentBiographicalInfoToStudentMapper; _studentNameToStudentMapper = studentNameToStudentMapper; _studentHomeAddressToStudentMapper = studentHomeAddressToStudentMapper; _parentRepository = parentRepository; _editProfileParentModelToParentMapper = editProfileParentModelToParentMapper; _programStatusModelToProgramStatusForEditMapper = programStatusModelToProgramStatusForEditMapper; _editAcademicDetailModelToStudentAcademicDetailMapper = editAcademicDetailModelToStudentAcademicDetailMapper; }
//public UserController(){} public AccountController(IBedrijfRepository bedrijfR, IStudentRepository studentR , IStagebegeleiderRepository stagebegeleiderR,IUserRepository usersRepository) { this.BedrijfRepository = bedrijfR; this.StagebegeleiderRepository = stagebegeleiderR; this.StudentRepository = studentR; this.UserRepository = usersRepository; }
public StudentWriterService(IStudentRepository studentRepository, IUniversityRepository universityRepository, ILogger logger, IStudentFactory studentFactory) { _studentRepository = studentRepository; _universityRepository = universityRepository; _logger = logger; _studentFactory = studentFactory; }
/// <summary> /// Initializes a new instance of the <see cref="CourseService" /> class. /// </summary> /// <param name="courseRepository">The course repository.</param> /// <param name="courseOfferingRepository"></param> /// <param name="studentRepository"></param> public CourseService(ICourseRepository courseRepository, ICourseOfferingRepository courseOfferingRepository, IStudentRepository studentRepository) { _courseRepository = courseRepository; _courseOfferingRepository = courseOfferingRepository; _studentRepository = studentRepository; }
public StudentService( IStudentRepository studentRepository, ICacheManager cacheManager, IDisciplineService disciplineService) { _studentRepository = studentRepository; _cacheManager = cacheManager; _disciplineService = disciplineService; }
public StudentsController(IOptions<RedisConfig> redisConfig, ILogger<StudentsController> logger) { String redisConnection = redisConfig.Value.RedisConnection; _logger = logger; _logger.LogCritical("logging redis connection: " + redisConnection); _studentRepository = new StudentRepository(ConnectionMultiplexer.Connect(redisConnection).GetDatabase(0)); _classRepository = new ClassRepository(ConnectionMultiplexer.Connect(redisConnection).GetDatabase(0)); }
public StudentController(IStudentRepository studentRepository, IParentRepository parentRepository, IContactInformationRepository contactInformationRepository) { _studentRepository = studentRepository; _parentRepository = parentRepository; _contactInformationRepository = contactInformationRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public AccountController() : this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext())) ) { StuaContext context = new StuaContext(); studentRepository = new StudentRepository(context); begeleiderRepository = new BegeleiderRepository(context); bedrijfRepository = new BedrijfRepository(context); }
public StudentController(IStudentProcessingService svc, IStudentRepository studentRepo, IStudentMappingHelper helper, ISchoolRepository schoolRepo) { _svc = svc; _studentRepo = studentRepo; _helper = helper; _schoolRepo = schoolRepo; }
public StudentService(IUnitOfWork unitOfWork, IStudentRepository studentRepository, ITeacherRepository teacherRepository) { _unitOfWork = unitOfWork; _studentRepository = studentRepository; _teacherRepository = teacherRepository; }
public LibrusManager(IClassRepository classRepository, ISubjectRepository subjectRepository, ITimeTableRepository timeTableRepository, IStudentRepository studentRepository, IPresenceRepository presenceRepository) { this.classRepository = classRepository; this.subjectRepository = subjectRepository; this.timeTableRepository = timeTableRepository; this.studentRepository = studentRepository; this.presenceRepository = presenceRepository; }
public AccountController(IBedrijfRepository bedrijfRepository, IStudentRepository studentRepository, IStagebegeleiderRepository stagebegeleider, IUserRepository userRepository,IGemeenteRepository gemeenteRepository) { this.BedrijfRepository = bedrijfRepository; this.StagebegeleiderRepository = stagebegeleider; this.StudentRepository = studentRepository; this.UserRepository = userRepository; this.gemeenteRepository = gemeenteRepository; }
public ReleaseTextbookForQueryAppl(ITypeAdapter adapter, IStudentReleaseRecordRepository recordRepo, ITeachingTaskRepository taskRepo, IProfessionalClassRepository classRepo, IStudentRepository stuRepo, IBooksellerRepository booksellerRepo) { _adapter = adapter; _recordRepo = recordRepo; _taskRepo = taskRepo; _classRepo = classRepo; _stuRepo = stuRepo; _booksellerRepo = booksellerRepo; }
public ImportDataRepository(IPasswordGenerationService passwordGenerationService, IParentRepository parentRepository, IStudentRepository studentRepository, IEnrollRepository enrollRepository, IAcademicYearRepository academicYearRepository, IUserRepository userRepository) { _passwordGenerationService = passwordGenerationService; _parentRepository = parentRepository; _studentRepository = studentRepository; _enrollRepository = enrollRepository; _academicYearRepository = academicYearRepository; _userRepository = userRepository; }
public EnrollController(IAcademicYearRepository academicYearRepository, IStudentRepository studentRepository, IEnrollRepository enrollRepository, IGradeRepository gradeRepository) { _studentRepository = studentRepository; _enrollRepository = enrollRepository; _academicYearRepository = academicYearRepository; _gradeRepository = gradeRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public static IStudentRepository CreateStudentRepository() { if(studentRepository == null) { studentRepository = new StudentRepository(LibrusFactory.DataContext); } return studentRepository; }
public TextbookFeeAppl(ITypeAdapter adapter, ISchoolRepository schoolRepo, IStudentRepository stuRepo, IStudentReleaseRecordRepository stuReleaseRepo, IProfessionalClassRepository proClassRepo, ITeachingTaskRepository taskRepo, IBooksellerRepository booksellerRepo) { _adapter = adapter; _schoolRepo = schoolRepo; _classRepo = proClassRepo; _stuRepo = stuRepo; _studentRecordRepo = stuReleaseRepo; _taskRepo = taskRepo; _booksellerRepo = booksellerRepo; }
public DropStudentBookAppl(IInventoryRepository inventoryRepo, IStudentReleaseRecordRepository studentReleaseRecordRepo, ITypeAdapter typeAdapter, IInStockRecordRepository inStockRecordRepo, IBooksellerRepository booksellerRepository, ITypeAdapter adapter, IProfessionalClassRepository classRepository, IStudentRepository stuRepo) { _inventoryRepo = inventoryRepo; _studentReleaseRecordRepo = studentReleaseRecordRepo; _typeAdapter = typeAdapter; _inStockRecordRepo = inStockRecordRepo; _booksellerRepository = booksellerRepository; _adapter = adapter; _classRepository = classRepository; _stuRepo = stuRepo; }
//public UserController(){} public UserController(IBedrijfRepository bedrijfR, IStudentRepository studentR, IStagebegeleiderRepository stagebegeleiderR, IUserRepository usersRepository, ISpecialisatieRepository specialisatie, IOpdrachtRepository opdracht) { this.bedrijfRepository = bedrijfR; this.stagebegeleiderRepository = stagebegeleiderR; this.studentRepository = studentR; this.userRepository = usersRepository; this.specialisatieRepository = specialisatie; this.opdrachtRepository = opdracht; }
public ReleaseStudentBookAppl(IStudentDeclarationRepository declarationRepository, ITypeAdapter adapter, IStudentReleaseRecordRepository studentReleaseRecordRepository, IStudentRepository studentRepository, ITeachingTaskRepository teachingTaskRepository, ITextbookRepository textbookRepository, IInventoryRepository inventoryRepository, IOutStockRecordRepository outStockRecordRepository, IBooksellerRepository booksellerRepository, IProfessionalClassRepository classRepository, IReleaseRecordRepository releaseRecordRepository, ITypeAdapter typeAdapter) { _declarationRepository = declarationRepository; _stuRepo = studentRepository; _teachingTaskRepository = teachingTaskRepository; _inventoryRepository = inventoryRepository; _outStockRecordRepository = outStockRecordRepository; _booksellerRepository = booksellerRepository; _classRepository = classRepository; _releaseRecordRepository = releaseRecordRepository; _adapter = typeAdapter; }
public NotificationController(INotificationRepository notificationRepository, IAcademicYearRepository academicYearRepository, IParentRepository parentRepository, ISessionManagementRepository sessionManagementRepository, ISecurityRepository securityRepository, IStudentRepository studentRepository, IEnrollRepository enrollsRepository) { _notificationRepository = notificationRepository; _academicYearRepository = academicYearRepository; _parentRepository = parentRepository; _sessionManagementRepository = sessionManagementRepository; _securityRepository = securityRepository; StudentRepository = studentRepository; EnrollsRepository = enrollsRepository; SecurityRepository = securityRepository; }
public StudentController(IBedrijfRepository bedrijfR, IStudentRepository studentR, IStagebegeleiderRepository stagebegeleiderR, IUserRepository usersRepository, ISpecialisatieRepository specialisatie, IOpdrachtRepository opdracht, IGemeenteRepository gemeenteRepository, IStatusRepository statusRepository) { this.bedrijfRepository = bedrijfR; this.stagebegeleiderRepository = stagebegeleiderR; this.studentRepository = studentR; this.userRepository = usersRepository; this.specialisatieRepository = specialisatie; this.opdrachtRepository = opdracht; this.gemeenteRepository = gemeenteRepository; this.statusRepository = statusRepository; }
public AttendanceController(IGenericRepository genericRepository, ISectionRepository sectionRepository, SectionToTakeAttendanceModelMapper sectionToTakeAttendanceModelMapper, TakeAttendanceModelToStudentSectionAttendanceEventListMapper takeAttendanceModelToStudentSectionAttendanceEventListMapper, IAttendanceService attendanceService, IStudentRepository studentRepository) { _genericRepository = genericRepository; _sectionRepository = sectionRepository; _sectionToTakeAttendanceModelMapper = sectionToTakeAttendanceModelMapper; _takeAttendanceModelToStudentSectionAttendanceEventListMapper = takeAttendanceModelToStudentSectionAttendanceEventListMapper; _attendanceService = attendanceService; _studentRepository = studentRepository; }
public StudentIndexModel(IStudentRepository studentRepository,String id, IOpdrachtRepository opdrachtRepository,string search = null) { Student = createStudentFromRepo(id, studentRepository); if (search == null) { Search = ""; Opdrachten = opdrachtRepository.GeefStageOpdrachten(); } else { Search = search; Opdrachten = opdrachtRepository.GeefStageOpdrachtenMetZoekstring(search); } }
public void Initialize() { RedisSeedDatabase(); _repository = new StudentRedisRepository(); _student = new Student { Id = redisStudents.GetNextSequence(), Name = "Rogerio Sá de Lima", Age = 35, Birthday = new DateTime(1980, 10, 31), Actived = true }; }
public EnrollmentController(IGenericRepository repository, IMapper<CreateStudentModel, Student> enrollmentMapper, IMapper<EnterProgramStatusModel, StudentProgramStatus> programStatusMapper, IMapper<AcademicDetailModel, StudentAcademicDetail> academicDetailMapper, IFileUploader fileUploader, IMapper<AcademicDetailModel, StudentSchoolAssociation> schoolAssociationMapper, IStudentRepository studentRepository) { _fileUploader = fileUploader; _schoolAssociationMapper = schoolAssociationMapper; _studentRepository = studentRepository; _academicDetailMapper = academicDetailMapper; _repository = repository; _enrollmentMapper = enrollmentMapper; _programStatusMapper = programStatusMapper; }
public HomeworkController(IHomeworkRepository homeworkRepository, IAcademicYearDetailsRepository academicYearDetailRepository, IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository, ICourseRepository courseRepository, IStudentRepository studentRepository, IEnrollRepository enrollsRepository, ISessionManagementRepository sessionManagementRepository, ISecurityRepository securityRepository, IParentRepository parentRepository) { _homeworkRepository = homeworkRepository; _academicYearRepository = academicYearRepository; _gradeRepository = gradeRepository; _courseRepository = courseRepository; _academicYearDetailRepository = academicYearDetailRepository; StudentRepository = studentRepository; EnrollsRepository = enrollsRepository; _sessionManagementRepository = sessionManagementRepository; SecurityRepository = securityRepository; _parentRepository = parentRepository; }
public NotificationController(ISessionManagementRepository sessionManagement, IUserRepository userRepository, INotificationRepository notificationRepository, INotificationTypeRepository notificationTypeRepository, IPeopleRepository peopleRepository, ITeacherRepository teacherRepository, IAcademicYearDetailsRepository academicYearDetailRepository, IStudentRepository studentRepository, IParentRepository parentRepository, IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository, IEnrollRepository enrollRepository, IEducationLevelRepository areaReporsitory) { _sessionManagement = sessionManagement; _userRepository = userRepository; _notificationRepository = notificationRepository; _notificationTypeRepository = notificationTypeRepository; _peopleRepository = peopleRepository; _teacherRepository = teacherRepository; _academicYearDetailRepository = academicYearDetailRepository; _parentRepository = parentRepository; _studentRepository = studentRepository; _gradeRepository = gradeRepository; _academicYear = academicYearRepository; _enrollRepository = enrollRepository; _areaReporsitory = areaReporsitory; _viewMessageLogic = new ViewMessageLogic(this); }
public StudentService(IStudentRepository StudentRepository, IFileHandler FileHandler, IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService, IStudentsTransportService StudentsTransportService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IAreaService AreaService) { this._StudentRepository = StudentRepository; this._iFileHandler = FileHandler; this._IStudentsParentService = StudentsParentService; this._IStudentsMedicalService = StudentsMedicalService; this._IStudentsTransportService = StudentsTransportService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._AreaService = AreaService; }
public HomeModule(IStudentRepository studentRepo) { Get["/"] = parm => { // var url = ConfigurationManager.AppSettings["HostUrl"].ToString(); return View["Index", new Schools()]; }; Post["/lookup"] = parm => { var request = this.Bind<StudentSearchCriteria>(); if (request.School == "School Not Found") { request.SchoolDoesNotExist = true; return View["student/CreateStudent", request]; } if (request.FirstName == null) request.FirstName = ""; if (request.LastName == null) request.LastName = ""; var students = studentRepo.Query(s => s.School == request.School); students = students.Where(s => s.FirstName.StartsLike(request.FirstName) && s.LastName.StartsLike(request.LastName)); if(students.Count() == 1) return View["student/EditStudent", students.First().MapToModel()]; if(students.Count() == 0) return View["student/CreateStudent", request]; return View["StudentLookup", new Students(request, students.Select(s => s.MapToModel()))]; }; Get["/lookup"] = parm => { var request = this.Bind<StudentSearchCriteria>(); var student = studentRepo.Find( s => s.School == request.School && s.FirstName == request.FirstName && s.LastName == request.LastName); if(student == null) throw new Exception("The student you selected was not found in the database!"); return View["student/EditStudent", student.MapToModel()]; }; }
public HomeController(ITeacherRepository teacherRepository, IStudentRepository studentRepository) { _teacherRepository = teacherRepository; _studentRepository = studentRepository; }
//使用构造函数注入的方式注入IStudentRepository public HomeController(IStudentRepository studentRepository, HostingEnvironment hostingEnvironment) { _studentRepository = studentRepository; this.hostingEnvironment = hostingEnvironment; }
public StudentController(IStudentRepository repo) { studentRepository = repo; }
public StudentService(IStudentRepository studentRepository) { this.studentRepository = studentRepository; }
public StudentApiController(IStudentRepository _studentRepository) { studentRepository = _studentRepository; }
public SubscriptionHandler(IStudentRepository repository, IEmailService emailService) { _repository = repository; _emailService = emailService; }
public StudentService(IStudentRepository _StudentRepository, IUnitOfWork _UnitOfWork) { this._StudentRepository = _StudentRepository; this._UnitOfWork = _UnitOfWork; }
public StudentService(IStudentRepository iStudentRepository, IStudentMapper iStudentMapper) { _iStudentRepository = iStudentRepository; _iStudentMapper = iStudentMapper; }
public StudentController(StudentHandler handler, IStudentRepository repository) { _handler = handler; _repository = repository; }
public HomeController(IStudentRepository studentRepository, HostingEnvironment hostingEnvironment, ILogger <HomeController> logger) { _studentRepository = studentRepository; this.hostingEnvironment = hostingEnvironment; this.logger = logger; }
public StudentLogic(IStudentRepository studentRepository, IUnitOfWorkFactory unitOfWorkFactory) { _studentRepository = studentRepository; _unitOfWorkFactory = unitOfWorkFactory; }
public StudentiController(IStudentRepository repo) { _repo = repo; }
public StudentsController(IStudentRepository studentRepository) { _studentRepository = studentRepository; }
// USC - || Constructor || public UpdateStudentCommandHandler(IStudentRepository studentRepository) { _studentRepository = studentRepository; }
public AdmStudentController() { this._userRepo = new UserDataAcces(); this._studentRepo = new StudentDataAccess(); this._studentService = new StudentService(this._studentRepo, this._userRepo); }
public StudentService(IStudentRepository studentRepository) { _studentRepo = studentRepository; }
public StudentManager(IStudentRepository studentRepository) { _studentRepository = studentRepository; }
public StudentScheduleService(IStudentRepository studentRepository, IDateProvider dateProvider) { _studentRepository = studentRepository; _dateProvider = dateProvider; }
public StudentsController() { studentRepo = new StudentRespository(); }
public ClassService(IStudentRepository studentRepository, IMapper mapper) { _studentRepository = studentRepository; _mapper = mapper; }
public StudentService(IStudentRepository studentRepository, UnitOfWork unitOfWork) { this._studentRepository = studentRepository; this._unitOfWork = unitOfWork; }
public StudentController(IStudentRepository repository) { _repository = repository; }
public StudentService(IStudentRepository repository) { this.repository = repository; }
public DisenrollStudentCommandHandler(IUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; studentRepository = unitOfWork.StudentRepository; courseRepository = unitOfWork.CourseRepository; }
public StudentBll(IStudentRepository studentRepository, IGenericValidator <User> userValidator) { _studentRepository = studentRepository; _userValidator = userValidator; }
public StudentsController(ApplicationContext _context, IStudentRepository _repo) { this.context = _context; repo = _repo; }
public DeleteStudentCommandHandler(IStudentRepository studentRepository) =>
public ValuesController(IStudentRepository studentRepository, IAccountRepository accountRepositoryRepository) { _studentRepository = studentRepository; _accountRepositoryRepository = accountRepositoryRepository; }
public StudentsController(IStudentRepository repository, IUserHelper userHelper) { this.repository = repository; this.userHelper = userHelper; }
public HomeController(IUnitOfWork repositoryCenter) { _repositoryCenter = repositoryCenter; _studentRepository = _repositoryCenter.GetRepository <IStudentRepository>(); }