public GroupController(IMapper mapper, IUnitOfWork unitOfWork, IGroupRepository groupRepository, ILecturerRepository lecturerRepository, IProjectRepository projectRepository, IMajorRepository majorRepository, IQuarterRepository quarterRepository, IEnrollmentRepository enrollmentRepository) { this.mapper = mapper; this.unitOfWork = unitOfWork; this.groupRepository = groupRepository; this.lecturerRepository = lecturerRepository; this.projectRepository = projectRepository; this.majorRepository = majorRepository; this.quarterRepository = quarterRepository; this.enrollmentRepository = enrollmentRepository; }
public EnrollmentController(IConfiguration config, IMapper mapper, IUnitOfWork unitOfWork, IEnrollmentRepository enrollmentRepository, IStudentRepository studentRepository, IGroupRepository groupRepository, UserManager <ApplicationUser> userManager, IQuarterRepository quarterRepository, ILecturerRepository lecturerRepository) { this.mapper = mapper; this.unitOfWork = unitOfWork; this.enrollmentRepository = enrollmentRepository; this.studentRepository = studentRepository; this.groupRepository = groupRepository; this.userManager = userManager; this.quarterRepository = quarterRepository; this.lecturerRepository = lecturerRepository; this.config = config; }
public UnitOfWork( IDbConnection connection, ITeamRepository teams, IProjectRepository projects, IDueDateRepository duedates, ITaxPayerTypeRepository taxPayerTypes, IDeliverableTypeRepository deliverableTypes, IJurisdictionRepository jurisdictions, IFormRepository forms, ITaxYearRepository taxYears, IQuarterRepository quarters, IQuarterDueDateRepository quarterDueDates, ISqlGenerator sqlGeneratorBase, IDataComparer datacomparer) { _connection = connection; Teams = teams; DueDates = duedates; Projects = projects; TaxPayerTypes = taxPayerTypes; DeliverableTypes = deliverableTypes; Jurisdictions = jurisdictions; Forms = forms; TaxYears = taxYears; Quarters = quarters; QuarterDueDates = quarterDueDates; Teams.ActionCreated += ActionCreated; DueDates.ActionCreated += ActionCreated; Projects.ActionCreated += ActionCreated; TaxPayerTypes.ActionCreated += ActionCreated; DeliverableTypes.ActionCreated += ActionCreated; Jurisdictions.ActionCreated += ActionCreated; Forms.ActionCreated += ActionCreated; TaxYears.ActionCreated += ActionCreated; Quarters.ActionCreated += ActionCreated; QuarterDueDates.ActionCreated += ActionCreated; _sqlGeneratorBase = sqlGeneratorBase; _dataComparer = datacomparer; ActionsQueue = new Queue <EntityAction>(); }
public QuarterService() { _repository = ZC_IT_TimeTracking.DataAccess.Factory.RepositoryFactory.GetInstance().GetQuarterRepository(); this.ValidationErrors = _repository.ValidationErrors; }
public QuarterController(IMapper mapper, IUnitOfWork unitOfWork, IQuarterRepository repository) { this.mapper = mapper; this.unitOfWork = unitOfWork; this.repository = repository; }