public IActionResult AddTest() { var model = new TestDTO(); model.TeachersAll = userManager.GetAllTeachers(); model.Subjects = subjectManager.GetAll(); return(View(model)); }
public IActionResult Index() { var subjects = subjectManager.GetAll(); System.Security.Claims.ClaimsPrincipal currentUser = this.User; string userId = userIdenityManager.GetUserId(currentUser); var openTests = testResultManager.GetOpenTests(userId); var model = new HomePageDTO { Subjects = subjects, OpenTests = openTests }; return(View(model)); }
public IActionResult Index() { var subjects = subjectManager.GetAll(); return(View(subjects)); }