Example #1
0
        public async Task <IActionResult> StartSession(int testId)
        {
            var testSessionId = await repository.StartNewSession(User.Identity.Name, testId);

            return(RedirectToAction(nameof(ViewQuestion), new { testSessionId = testSessionId, questionIndex = 1 }));
        }