Exemple #1
0
        public IActionResult AddTest()
        {
            var model = new TestDTO();

            model.TeachersAll = userManager.GetAllTeachers();
            model.Subjects    = subjectManager.GetAll();

            return(View(model));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        public IActionResult Index()
        {
            var subjects = subjectManager.GetAll();

            return(View(subjects));
        }