Пример #1
0
        public IActionResult ViewQuestion(int testSessionId, int questionIndex)
        {
            var viewModel = repository.GetViewQuestion(testSessionId, questionIndex, true);

            //if (viewModel.SecondsLeft.HasValue && viewModel.SecondsLeft <= 0)
            //{
            //    // Timed out
            //    return RedirectToAction(nameof(SessionCompleted),
            //        new { TestSessionId = testSessionId, completedReason = (int)SessionCompletedReason.TimedOut });
            //}

            return(View(viewModel));
        }