Пример #1
0
        public AttendanceLetterService(IAttendanceLetterCommands commands, IAttendanceLetterQueries queries, IStudentAbsencesForEmailService studentAbsencesForEmailService, ICalendarMembershipDaysQueries calendarQueries, IConfiguration config, IPdfProvider pdfProvider, ISchoolYearsService schoolYearService, IStudentExtraHoursService studentExtraHoursService, IHostingEnvironment env, ISchoolsService schoolsService, IStudentGeneralDataForDnaService studentGeneralDataForDnaService)
        {
            _commands = commands;
            _queries  = queries;
            _config   = config;
            _studentAbsencesForEmailService = studentAbsencesForEmailService;
            _calendarQueries          = calendarQueries;
            _pdfProvider              = pdfProvider;
            _schoolYearService        = schoolYearService;
            _studentExtraHoursService = studentExtraHoursService;
            _env = env;
            _studentGeneralDataForDnaService = studentGeneralDataForDnaService;
            _schoolsService = schoolsService;

            Day3Range  = _config.GetSection("Notifications:AttendanceLetter:3DayLetterRange").Get <int>();
            Day5Range  = _config.GetSection("Notifications:AttendanceLetter:5DayLetterRange").Get <int>();
            Day10Range = _config.GetSection("Notifications:AttendanceLetter:10DayLetterRange").Get <int>();
        }
 public StudentAbsencesCodesByPeriodService(IStudentAbsencesCodesByPeriodQueries queries, IStudentGeneralDataForDnaService studentGeneralDataForDnaService)
 {
     _queries = queries;
     _studentGeneralDataForDnaService = studentGeneralDataForDnaService;
 }