public async Task <IActionResult> RoundsPartial(long quizId) { var viewModel = new RoundsPartialViewModel(); var quiz = await _quizService.GetQuizByIdAsync(quizId); var rounds = await _quizService.GetQuizRoundsByQuizIdAsync(quizId); var categories = await _lookupService.GetAllCategoriesAsync(); var modifiers = await _lookupService.GetAllModifiersAsync(); var questionTypes = await _lookupService.GetAllQuestionTypesAsync(); viewModel.Quiz = quiz; viewModel.Rounds = rounds; viewModel.Categories = categories; viewModel.QuestionTypes = questionTypes; viewModel.Modifiers = modifiers; return(PartialView("~/Views/Admin/Partials/_RoundsPartial.cshtml", viewModel)); }