/// <summary> /// Создание образовательной программы, доступной методкомиссии /// </summary> /// <param name="EduProgramId"></param> /// <returns></returns> public async Task <IActionResult> EduProgramCreate() { ViewBag.EduForms = _context.EduForms.OrderBy(f => f.EduFormName); ViewBag.EduYearBeginningTrainings = _context.EduYearBeginningTrainings.OrderBy(y => y.EduYearBeginningTrainingName); ViewBag.EduYears = _context.EduYears.OrderBy(y => y.EduYearName); IEnumerable <MetodKomissiya> metodKomissiiOfUser = await _metodKomissiyaRepository.GetMetodKomissiiByUserNameAsync(User.Identity.Name); ViewData["EduProfileId"] = _selectListRepository.GetSelectListEduProfileFullNamesOfMethodicalCommission(metodKomissiiOfUser); ViewData["EduProgramPodgId"] = _selectListRepository.GetSelectListEduProgramPodg(); return(View("EduProgramEdit", new EduProgram())); }