Пример #1
0
 public async Task <IActionResult> Create()
 {
     ViewData["L_Class"]   = new SelectList(await _schoolclassService.GetAllAsync(), "C_ID", "C_ID");
     ViewData["L_Hour"]    = new SelectList(await _periodService.GetAllAsync(), "P_Nr", "P_Nr");
     ViewData["L_Teacher"] = new SelectList(await _teacherService.GetAllAsync(), "T_ID", "T_ID");
     return(View());
 }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            var model = await _schoolclassService.GetAllAsync();

            return(View(model));
        }