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>(); }
//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()); }
// 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; }
public IndexModel(ELIContext context, IConfiguration config, ILogger <IndexModel> logger) : base(context, config, logger) { }
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) { }
public EliPageModel(ELIContext context, IConfiguration config, ILogger logger) { _context = context; _config = config; _logger = logger; }