示例#1
0
        public async Task <IActionResult> Rounds(long quizId)
        {
            var quiz = await _quizService.GetQuizByIdAsync(quizId);

            var categories = await _lookupService.GetAllCategoriesAsync();

            var questionTypes = await _lookupService.GetAllQuestionTypesAsync();

            var viewModel = new RoundsViewModel(quiz, categories, questionTypes);

            return(View(viewModel));
        }