Пример #1
0
 public StudentsServices(IStudentRepository studentRepository, IEncryption encryption, IMajorsServices majorServices, ITextDocumentServices textDocumentServices, IHourRepository hourRepository)
 {
     _studentRepository    = studentRepository;
     _encryption           = encryption;
     _majorServices        = majorServices;
     _textDocumentServices = textDocumentServices;
     _hourRepository       = hourRepository;
 }
Пример #2
0
 public StudentsController(IStudentsServices studentServices, IEmail email, IEncryption encryption, IHoursServices hoursServices, IMajorsServices majorServices)
 {
     _studentsServices = studentServices;
     _email            = email;
     _encryption       = encryption;
     _hoursServices    = hoursServices;
     _majorServices    = majorServices;
 }
Пример #3
0
        public IEnumerable <Major> GetMajors(IMajorsServices majorsServices)
        {
            var majors = GetValue("Majors");

            if (majors == null)
            {
                Add("Majors", majorsServices.All().ToList(), DateTimeOffset.UtcNow.AddHours(24));
                majors = GetValue("Majors");
            }
            return(majors as IEnumerable <Major>);
        }
Пример #4
0
 public MajorsController(IMajorsServices majorsServices, IMemoryCacher memcCacher)
 {
     _majorsServices = majorsServices;
     _memCacher      = memcCacher;
 }