Exemple #1
0
 public LogNoteService(IAcademicYearRepository academicYearRepository, ILogNoteRepository logNoteRepository,
                       ILogNoteTypeRepository logNoteTypeRepository)
 {
     _academicYearRepository = academicYearRepository;
     _logNoteRepository      = logNoteRepository;
     _logNoteTypeRepository  = logNoteTypeRepository;
 }
Exemple #2
0
 public GradeController(IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository)
 {
     if (gradeRepository == null) throw new ArgumentNullException("gradeRepository");
     _gradeRepository = gradeRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
Exemple #3
0
 public static async Task CheckLock(IAcademicYearRepository academicYearRepository, Guid academicYearId)
 {
     if (await academicYearRepository.IsLocked(academicYearId))
     {
         throw new LogicException("This academic year is locked and cannot be modified.");
     }
 }
 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 ImportDataController(IImportDataRepository importDataRepository
                             ,IGradeRepository gradeRepository
                             ,IAcademicYearRepository academicYearRepository)
 {
     _importDataRepository = importDataRepository;
     _gradeRepository = gradeRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
Exemple #6
0
 public EnrollController(IAcademicYearRepository academicYearRepository,
                         IStudentRepository studentRepository, IEnrollRepository enrollRepository, IGradeRepository gradeRepository)
 {
     _studentRepository      = studentRepository;
     _enrollRepository       = enrollRepository;
     _academicYearRepository = academicYearRepository;
     _gradeRepository        = gradeRepository;
     _viewMessageLogic       = new ViewMessageLogic(this);
 }
 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;
 }
Exemple #8
0
 public EnrollController(IAcademicYearRepository academicYearRepository,
     IStudentRepository studentRepository, IEnrollRepository enrollRepository, IGradeRepository gradeRepository)
 {
     _studentRepository = studentRepository;
     _enrollRepository = enrollRepository;
     _academicYearRepository = academicYearRepository;
     _gradeRepository = gradeRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
 public ImportDataController(IImportDataRepository importDataRepository
                             , IGradeRepository gradeRepository
                             , IAcademicYearRepository academicYearRepository)
 {
     _importDataRepository   = importDataRepository;
     _gradeRepository        = gradeRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic       = new ViewMessageLogic(this);
 }
Exemple #10
0
 public AchievementService(IAcademicYearRepository academicYearRepository,
                           IAchievementRepository achievementRepository, IAchievementTypeRepository achievementTypeRepository,
                           IAchievementOutcomeRepository achievementOutcomeRepository)
 {
     _academicYearRepository       = academicYearRepository;
     _achievementRepository        = achievementRepository;
     _achievementTypeRepository    = achievementTypeRepository;
     _achievementOutcomeRepository = achievementOutcomeRepository;
 }
 public AcademicYearDetailsController(IAcademicYearDetailsRepository academicYearDetailsRepository,
                                      ICourseRepository courseRepository, ITeacherRepository teacherRepository,
                                      IAcademicYearRepository academicYearRepository)
 {
     _academicYearDetailsRepository = academicYearDetailsRepository;
     _courseRepository       = courseRepository;
     _teacherRepository      = teacherRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic       = new ViewMessageLogic(this);
 }
 public AcademicYearDetailsController(IAcademicYearDetailsRepository academicYearDetailsRepository,
     ICourseRepository courseRepository, ITeacherRepository teacherRepository,
     IAcademicYearRepository academicYearRepository)
 {
     _academicYearDetailsRepository = academicYearDetailsRepository;
     _courseRepository = courseRepository;
     _teacherRepository = teacherRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
Exemple #13
0
 public GradeController(IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository)
 {
     if (gradeRepository == null)
     {
         throw new ArgumentNullException("gradeRepository");
     }
     _gradeRepository        = gradeRepository;
     _academicYearRepository = academicYearRepository;
     _viewMessageLogic       = new ViewMessageLogic(this);
 }
 public NotificationController(INotificationRepository notificationRepository, IAcademicYearRepository academicYearRepository,
                               ITutorRepository tutorRepository, ISecurityService securityService,
                               IStudentRepository studentRepository)
 {
     _notificationRepository = notificationRepository;
     _academicYearRepository = academicYearRepository;
     _tutorRepository        = tutorRepository;
     _securityService        = securityService;
     StudentRepository       = studentRepository;
     SecurityService         = securityService;
 }
 public AcademicYearController(IAcademicYearRepository academicYearRepository, IUserRepository userRepository, ISessionManagementService sessionManagementService, IGradeRepository gradeRepository, IPensumRepository pensumRepository, IAcademicGradeRepository academicGradeRepository, IAcademicCourseRepository academicCourseRepository)
 {
     _academicYearRepository   = academicYearRepository;
     _userRepository           = userRepository;
     _sessionManagementService = sessionManagementService;
     _gradeRepository          = gradeRepository;
     _pensumRepository         = pensumRepository;
     _academicGradeRepository  = academicGradeRepository;
     _academicCourseRepository = academicCourseRepository;
     _viewMessageLogic         = new ViewMessageLogic(this);
 }
Exemple #16
0
 public DataImportController(IDataImportService dataImportService
                             , IGradeRepository gradeRepository
                             , IAcademicYearRepository academicYearRepository, IAcademicGradeRepository academicGradeRepository, IUserRepository userRepository, ISessionManagementService sessionManagementService)
 {
     _dataImportService        = dataImportService;
     _gradeRepository          = gradeRepository;
     _academicYearRepository   = academicYearRepository;
     _academicGradeRepository  = academicGradeRepository;
     _userRepository           = userRepository;
     _sessionManagementService = sessionManagementService;
     _viewMessageLogic         = new ViewMessageLogic(this);
 }
Exemple #17
0
 public StudentAffairsController(IAcademicYearRepository academicYearRepo,
                                 IUserRepository authRepo,
                                 IGradeRepository gradeRepo,
                                 IClassRepository classRepo,
                                 IStudentRepository studentRepo)
 {
     _academicYearRepo = academicYearRepo;
     _authRepo         = authRepo;
     _gradeRepo        = gradeRepo;
     _classRepo        = classRepo;
     _studentRepo      = studentRepo;
 }
 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;
 }
Exemple #19
0
 public AcademicYearService(
     IAcademicYearRepository academicYearRepository,
     IGradeRepository gradeRepository,
     ISchoolClassRepository schoolClassRepository,
     ISchoolThemeRepository schoolThemeRepository,
     ISubjectRepository subjectRepository)
 {
     this.academicYearRepository = academicYearRepository;
     this.gradeRepository        = gradeRepository;
     this.schoolClassRepository  = schoolClassRepository;
     this.schoolThemeRepository  = schoolThemeRepository;
     this.subjectRepository      = subjectRepository;
 }
 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 MessageToTeacherController(ITeacherRepository teacherRepository,
                                   ITutorRepository tutorRepository,
                                   INotificationRepository notificationRepository,
                                   IAcademicYearRepository academicYearRepository,
                                   IUserRepository userRepository,
                                   IStudentRepository studentRepository)
 {
     _teacherRepository      = teacherRepository;
     _tutorRepository        = tutorRepository;
     _notificationRepository = notificationRepository;
     _academicYearRepository = academicYearRepository;
     _userRepository         = userRepository;
     _studentRepository      = studentRepository;
 }
Exemple #22
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;
 }
 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;
 }
Exemple #24
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);
 }
 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);
 }
Exemple #26
0
        protected override void Seed(MhotivoContext context)
        {
            if (context.Users.Any())
            {
                return;
            }
            _passwordGenerationService = new PreloadedPasswordsGenerationService(context);
            _areaRepository            = new EducationLevelRepository(context);
            _gradeRepository           = new GradeRepository(context);
            _courseRepository          = new CourseRepository(context, _areaRepository);
            _pensumRepository          = new PensumRepository(context);
            _academicYearRepository    = new AcademicYearRepository(context);
            var admin = new User
            {
                DisplayName = "Administrador",
                Email       = "*****@*****.**",
                Password    = "******",
                IsActive    = true,
                Role        = Roles.Administrador
            };

            admin.EncryptPassword();
            context.Users.AddOrUpdate(admin);
            context.SaveChanges();
            context.NotificationTypes.AddOrUpdate(new NotificationType {
                Id = 1, Description = "General"
            });
            context.NotificationTypes.AddOrUpdate(new NotificationType {
                Id = 2, Description = "Nivel De Educacion"
            });
            context.NotificationTypes.AddOrUpdate(new NotificationType {
                Id = 3, Description = "Grado"
            });
            context.NotificationTypes.AddOrUpdate(new NotificationType {
                Id = 4, Description = "Personal"
            });
            context.SaveChanges();
            DebuggingSeeder(context);
            context.SaveChanges();
        }
 public NotificationController(ISessionManagementService sessionManagement, IUserRepository userRepository,
                               INotificationRepository notificationRepository, IPeopleRepository peopleRepository,
                               ITeacherRepository teacherRepository,
                               IAcademicCourseRepository academicCourseRepository, IStudentRepository studentRepository,
                               ITutorRepository tutorRepository, IGradeRepository gradeRepository,
                               IAcademicYearRepository academicYearRepository,
                               IEducationLevelRepository areaReporsitory, INotificationHandlerService notificationHandlerService, IAcademicGradeRepository academicGradeRepository, IEducationLevelRepository educationLevelRepository)
 {
     _sessionManagement          = sessionManagement;
     _userRepository             = userRepository;
     _notificationRepository     = notificationRepository;
     _peopleRepository           = peopleRepository;
     _teacherRepository          = teacherRepository;
     _academicCourseRepository   = academicCourseRepository;
     _tutorRepository            = tutorRepository;
     _studentRepository          = studentRepository;
     _gradeRepository            = gradeRepository;
     _academicYearRepository     = academicYearRepository;
     _areaReporsitory            = areaReporsitory;
     _notificationHandlerService = notificationHandlerService;
     _academicGradeRepository    = academicGradeRepository;
     _educationLevelRepository   = educationLevelRepository;
     _viewMessageLogic           = new ViewMessageLogic(this);
 }
Exemple #28
0
 public HomeworkController(IHomeworkRepository homeworkRepository,
                           IAcademicCourseRepository academicCourseRepository, IAcademicYearRepository academicYearRepository, ICourseRepository courseRepository, IStudentRepository studentRepository,
                           ISecurityService securityService, ITutorRepository tutorRepository)
 {
     StudentRepository = studentRepository;
     SecurityService   = securityService;
 }
 public AcademicYearService(IAcademicYearRepository AYRepository)
 {
     this._AYRepository = AYRepository;
 }
 public AcademicYearController(IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository)
 {
     _academicYearRepository = academicYearRepository;
     _gradeRepository = gradeRepository;
     _viewMessageLogic = new ViewMessageLogic(this);
 }
Exemple #31
0
 public Seed(DataContext context, IAcademicYearRepository academicYearRepo)
 {
     _context          = context;
     _academicYearRepo = academicYearRepo;
 }
 public AcademicYearController(IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository)
 {
     _academicYearRepository = academicYearRepository;
     _gradeRepository        = gradeRepository;
     _viewMessageLogic       = new ViewMessageLogic(this);
 }
Exemple #33
0
 public AcademicYearService(IAcademicYearRepository academicYearRepository)
 {
     _academicYearRepository = academicYearRepository;
 }
Exemple #34
0
 public AcademicYearService(IAcademicYearRepository repository,
                            IUnitOfWork unitOfWork)
     : base(repository, unitOfWork)
 {
 }
Exemple #35
0
 public HeadOfCenterController(IAcademicYearRepository repo)
 {
     _repo = repo;
 }