コード例 #1
0
        public async Task <ActionResult> DataSet(EstablishmentType estab, string year)
        {
            if (string.IsNullOrEmpty(year))
            {
                ViewBag.ErrorMessage = "Select an academic year";
                return(AcademicYear(estab));
            }

            ViewBag.Estab = estab;
            ViewBag.Year  = year;
            ViewBag.Count = await _dataService.GetEstablishmentRecordCountAsync(year, estab);

            return(View());
        }