Esempio n. 1
0
 public QuarterSelectViewComponent(ELIContext context, ILogger <QuarterSelectViewComponent> logger, IHttpContextAccessor httpContextAccessor, IConfiguration config)
 {
     _context             = context;
     _logger              = logger;
     _httpContextAccessor = httpContextAccessor;
     _config              = config;
     _appSettings         = _config.GetSection(ApplicationSettings.SectionName).Get <ApplicationSettings>();
 }
Esempio n. 2
0
 //get quarters as a list
 public List <Quarter> getQuartersList(ELIContext context, int count = 1)
 {
     return(context.Quarters.Where(q => DateTime.Now.Date >= q.FirstClassDay && q.Id != _appSettings.MaxQuarter).OrderByDescending(q => q.Id).Take(count).ToList());
 }
Esempio n. 3
0
 // get the current quarter
 public Quarter getCurrentQuarter(ELIContext context)
 {
     return(context.Quarters.Where(q => DateTime.Now.Date >= q.FirstClassDay && q.Id != _appSettings.MaxQuarter).OrderByDescending(q => q.Id).Take(1).Single());
 }
 public StudentDetailModel(ELIContext context)
 {
     _context = context;
 }
Esempio n. 5
0
 public IndexModel(ELIContext context, IConfiguration config, ILogger <IndexModel> logger) : base(context, config, logger)
 {
 }
Esempio n. 6
0
 public EditPlacementsModel(ELIContext context, IConfiguration config, ILogger <EditPlacementsModel> logger) : base(context, config, logger)
 {
 }
        //private readonly ELIContext _context;

        public StudentSearchModel(ELIContext context, IConfiguration config, ILogger <StudentSearchModel> logger) : base(context, config, logger)
        {
        }
 public PlaceNewStudentsModel(ELIContext context, IConfiguration config, ILogger <PlaceNewStudentsModel> logger) : base(context, config, logger)
 {
 }
Esempio n. 9
0
 public EliPageModel(ELIContext context, IConfiguration config, ILogger logger)
 {
     _context = context;
     _config  = config;
     _logger  = logger;
 }