public IActionResult Edit(Guid uid)
        {
            ViewBagMethod();
            var data = _departmentsService.GetByUID(uid);

            return(View(data));
        }
Пример #2
0
        public async Task <IActionResult> List(Guid departmentUID)
        {
            ViewBagMethod();
            var departmentModel = _departmentsService.GetByUID(departmentUID);

            CourseListViewModel viewModel = new CourseListViewModel()
            {
                Department = departmentModel,
                Courses    = _coursesService.GetAll(departmentUID, "DepartmentU")
            };

            return(View(viewModel));
        }