public EducationLevelController(IEducationLevelRepository areaReposity, IGradeRepository gradeRepository, IUserRepository userRepository, IRoleRepository roleRepository) { _areaReposity = areaReposity; _gradeRepository = gradeRepository; _userRepository = userRepository; _roleRepository = roleRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public EducationLevelController(IEducationLevelRepository repository, string catalog, LoginView view) { this._LoginId = view.LoginId.ToLong(); this._UserId = view.UserId.ToInt(); this._OfficeId = view.OfficeId.ToInt(); this._Catalog = catalog; this.EducationLevelRepository = repository; }
public UserController(IUserRepository userRepository, IPasswordGenerationService passwordGenerationService, IRoleRepository roleRepository, IEducationLevelRepository educationLevelRepository) { _userRepository = userRepository; _passwordGenerationService = passwordGenerationService; _roleRepository = roleRepository; _educationLevelRepository = educationLevelRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public GradeController(IGradeRepository gradeRepository, IAcademicGradeRepository academicGradeRepository, IPensumRepository pensumRepository, IEducationLevelRepository educationLevelRepository, ISessionManagementService sessionManagementService, IUserRepository userRepository) { _gradeRepository = gradeRepository; _academicGradeRepository = academicGradeRepository; _pensumRepository = pensumRepository; _educationLevelRepository = educationLevelRepository; _sessionManagementService = sessionManagementService; _userRepository = userRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public CourseController(ICourseRepository courseRepository, IEducationLevelRepository areaRepository, IPensumRepository pensumRepository) { if (courseRepository == null) throw new ArgumentNullException("courseRepository"); if (areaRepository == null) throw new ArgumentNullException("areaRepository"); _courseRepository = courseRepository; _areaRepository = areaRepository; _pensumRepository = pensumRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public AdministrativeController(IContactInformationRepository contactInformationRepository, IUserRepository userRepository, IRoleRepository roleRepository, IPasswordGenerationService passwordGenerationService, IPeopleWithUserRepository peopleWithUserRepository, IEducationLevelRepository educationLevelRepository) { _contactInformationRepository = contactInformationRepository; _userRepository = userRepository; _passwordGenerationService = passwordGenerationService; _peopleWithUserRepository = peopleWithUserRepository; _educationLevelRepository = educationLevelRepository; _roleRepository = roleRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public AdvetisimentController(IAdvertisiment Advertisiment, IEducationLevelRepository educationLevel, IUnitOfWork uow, IGroupRepository Group, ISubGroupRepository subGroup, IServiceRepository service, IEthinicalGroup ethinicalGroup, ICategoryInterface Category, IPostRepository post) { _Advertisiment = Advertisiment; _uow = uow; _Group = Group; _service = service; _SubGroup = subGroup; _ethinicalGroup = ethinicalGroup; _post = post; _category = Category; _educationLavel = educationLevel; }
public EducationLevelController() { this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong(); this._UserId = AppUsers.GetCurrent().View.UserId.ToInt(); this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); this._Catalog = AppUsers.GetCurrentUserDB(); this.EducationLevelRepository = new MixERP.Net.Core.Modules.HRM.Data.EducationLevel { _Catalog = this._Catalog, _LoginId = this._LoginId, _UserId = this._UserId }; }
public CourseController(ICourseRepository courseRepository, IEducationLevelRepository areaRepository, IPensumRepository pensumRepository) { if (courseRepository == null) { throw new ArgumentNullException("courseRepository"); } if (areaRepository == null) { throw new ArgumentNullException("areaRepository"); } _courseRepository = courseRepository; _areaRepository = areaRepository; _pensumRepository = pensumRepository; _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); }
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); }
public EducationLevelController(IEducationLevelRepository EducationLevel, IUnitOfWork uow) { _EducationLevel = EducationLevel; _uow = uow; }
public EducationLevelController(IEducationLevelRepository areaReposity, ICourseRepository courseRepository) { _areaReposity = areaReposity; _courseRepository = courseRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public EducationLevelService(IEducationLevelRepository educationLevelRepository, IUnitOfWork unitOfWork) { this.educationLevelRepository = educationLevelRepository; this.unitOfWork = unitOfWork; }
public EducationLevelLogic(IImisModules imisModules) { this.educationLevelRepository = new EducationLevelRepository(); this.imisModules = imisModules; }
private readonly IEducationLevelRepository _areaRepository; //Could this be needed in the future? public CourseRepository(MhotivoContext ctx, IEducationLevelRepository areaRepository) { _context = ctx; _areaRepository = areaRepository; }
public EducationLevelService(IEducationLevelRepository educationLevelRepository) { _educationLevelRepository = educationLevelRepository; }