public IActionResult Index()
        {
            var schoolYears = schoolYearDac.Get()
                              .Where(x => x.SchoolId == CurrentSchoolData.sc_id)
                              .OrderBy(x => x.Year);

            return(View(schoolYears));
        }
Esempio n. 2
0
 public SchoolConfig GetConfig()
 {
     return(new SchoolConfig
     {
         SchoolYear = schoolYearDac.Get().OrderBy(x => x.StartDate).LastOrDefault().Year,
     });
 }