예제 #1
0
        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;
        }
예제 #2
0
 //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;
		}
예제 #4
0
 /// <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;
 }
예제 #5
0
        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));
 }
예제 #7
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;
 }
예제 #10
0
 public StudentService(IUnitOfWork unitOfWork,
     IStudentRepository studentRepository,
     ITeacherRepository teacherRepository)
 {
     _unitOfWork = unitOfWork;
     _studentRepository = studentRepository;
     _teacherRepository = teacherRepository;
 }
예제 #11
0
 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;
 }
예제 #14
0
 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;
 }
예제 #15
0
 public EnrollController(IAcademicYearRepository academicYearRepository,
     IStudentRepository studentRepository, IEnrollRepository enrollRepository, IGradeRepository gradeRepository)
 {
     _studentRepository = studentRepository;
     _enrollRepository = enrollRepository;
     _academicYearRepository = academicYearRepository;
     _gradeRepository = gradeRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
예제 #16
0
        public static IStudentRepository CreateStudentRepository()
        {
            if(studentRepository == null)
            {
                studentRepository = new StudentRepository(LibrusFactory.DataContext);
            }

            return studentRepository;
        }
예제 #17
0
 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;
 }
예제 #19
0
 //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;
 }
예제 #21
0
 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;
 }
예제 #23
0
 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
            };
        }
예제 #26
0
 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;
 }
예제 #27
0
 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;
 }
예제 #28
0
 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);
 }
예제 #29
0
        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;
        }
예제 #30
0
        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()];
                                 };
        }
예제 #31
0
 public HomeController(ITeacherRepository teacherRepository,
                       IStudentRepository studentRepository)
 {
     _teacherRepository = teacherRepository;
     _studentRepository = studentRepository;
 }
예제 #32
0
 //使用构造函数注入的方式注入IStudentRepository
 public HomeController(IStudentRepository studentRepository, HostingEnvironment hostingEnvironment)
 {
     _studentRepository      = studentRepository;
     this.hostingEnvironment = hostingEnvironment;
 }
예제 #33
0
 public StudentController(IStudentRepository repo)
 {
     studentRepository = repo;
 }
예제 #34
0
 public StudentService(IStudentRepository studentRepository)
 {
     this.studentRepository = studentRepository;
 }
 public StudentApiController(IStudentRepository _studentRepository)
 {
     studentRepository = _studentRepository;
 }
 public SubscriptionHandler(IStudentRepository repository, IEmailService emailService)
 {
     _repository   = repository;
     _emailService = emailService;
 }
예제 #37
0
 public StudentService(IStudentRepository _StudentRepository, IUnitOfWork _UnitOfWork)
 {
     this._StudentRepository = _StudentRepository;
     this._UnitOfWork        = _UnitOfWork;
 }
예제 #38
0
 public StudentService(IStudentRepository iStudentRepository, IStudentMapper iStudentMapper)
 {
     _iStudentRepository = iStudentRepository;
     _iStudentMapper     = iStudentMapper;
 }
예제 #39
0
 public StudentController(StudentHandler handler, IStudentRepository repository)
 {
     _handler    = handler;
     _repository = repository;
 }
예제 #40
0
 public HomeController(IStudentRepository studentRepository, HostingEnvironment hostingEnvironment, ILogger <HomeController> logger)
 {
     _studentRepository      = studentRepository;
     this.hostingEnvironment = hostingEnvironment;
     this.logger             = logger;
 }
예제 #41
0
 public StudentLogic(IStudentRepository studentRepository, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _studentRepository = studentRepository;
     _unitOfWorkFactory = unitOfWorkFactory;
 }
예제 #42
0
 public StudentiController(IStudentRepository repo)
 {
     _repo = repo;
 }
예제 #43
0
 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);
 }
예제 #46
0
 public StudentService(IStudentRepository studentRepository)
 {
     _studentRepo = studentRepository;
 }
예제 #47
0
 public StudentManager(IStudentRepository studentRepository)
 {
     _studentRepository = studentRepository;
 }
 public StudentScheduleService(IStudentRepository studentRepository, IDateProvider dateProvider)
 {
     _studentRepository = studentRepository;
     _dateProvider      = dateProvider;
 }
예제 #49
0
 public StudentsController()
 {
     studentRepo = new StudentRespository();
 }
 public ClassService(IStudentRepository studentRepository, IMapper mapper)
 {
     _studentRepository = studentRepository;
     _mapper            = mapper;
 }
예제 #51
0
 public StudentService(IStudentRepository studentRepository, UnitOfWork unitOfWork)
 {
     this._studentRepository = studentRepository;
     this._unitOfWork        = unitOfWork;
 }
예제 #52
0
 public StudentController(IStudentRepository repository)
 {
     _repository = repository;
 }
예제 #53
0
 public StudentService(IStudentRepository repository)
 {
     this.repository = repository;
 }
예제 #54
0
 public DisenrollStudentCommandHandler(IUnitOfWork unitOfWork)
 {
     this.unitOfWork   = unitOfWork;
     studentRepository = unitOfWork.StudentRepository;
     courseRepository  = unitOfWork.CourseRepository;
 }
예제 #55
0
 public StudentBll(IStudentRepository studentRepository, IGenericValidator <User> userValidator)
 {
     _studentRepository = studentRepository;
     _userValidator     = userValidator;
 }
예제 #56
0
 public StudentsController(ApplicationContext _context, IStudentRepository _repo)
 {
     this.context = _context;
     repo         = _repo;
 }
예제 #57
0
 public DeleteStudentCommandHandler(IStudentRepository studentRepository) =>
예제 #58
0
 public ValuesController(IStudentRepository studentRepository, IAccountRepository accountRepositoryRepository)
 {
     _studentRepository           = studentRepository;
     _accountRepositoryRepository = accountRepositoryRepository;
 }
예제 #59
0
 public StudentsController(IStudentRepository repository, IUserHelper userHelper)
 {
     this.repository = repository;
     this.userHelper = userHelper;
 }
예제 #60
0
 public HomeController(IUnitOfWork repositoryCenter)
 {
     _repositoryCenter  = repositoryCenter;
     _studentRepository = _repositoryCenter.GetRepository <IStudentRepository>();
 }