Exemplo n.º 1
0
 public IActionResult Index(string error = null)
 {
     ViewBag.Error = error;
     return(View(_subjectRepository.GetSubjects()));
 }
 public IActionResult Create()
 {
     ViewData["Subjects"] = _subjectsRepository.GetSubjects();
     ViewData["Teachers"] = _usersRepository.GetNotBannedUsersInRole("Teacher").ToList();
     return(View(new CourseViewModel()));
 }