public IActionResult Index() { var schoolYears = schoolYearDac.Get() .Where(x => x.SchoolId == CurrentSchoolData.sc_id) .OrderBy(x => x.Year); return(View(schoolYears)); }
public SchoolConfig GetConfig() { return(new SchoolConfig { SchoolYear = schoolYearDac.Get().OrderBy(x => x.StartDate).LastOrDefault().Year, }); }