public StudentsServices(IStudentRepository studentRepository, IEncryption encryption, IMajorsServices majorServices, ITextDocumentServices textDocumentServices, IHourRepository hourRepository) { _studentRepository = studentRepository; _encryption = encryption; _majorServices = majorServices; _textDocumentServices = textDocumentServices; _hourRepository = hourRepository; }
public StudentsController(IStudentsServices studentServices, IEmail email, IEncryption encryption, IHoursServices hoursServices, IMajorsServices majorServices) { _studentsServices = studentServices; _email = email; _encryption = encryption; _hoursServices = hoursServices; _majorServices = majorServices; }
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>); }
public MajorsController(IMajorsServices majorsServices, IMemoryCacher memcCacher) { _majorsServices = majorsServices; _memCacher = memcCacher; }