Quiz weiter gebaut;
This commit is contained in:
@@ -70,9 +70,20 @@ namespace MultipleChoiceTrainer.Controllers
|
||||
|
||||
public IActionResult Quiz(QuizViewModel viewModel)
|
||||
{
|
||||
var newViewModel = new QuizViewModel()
|
||||
{
|
||||
QuizType = viewModel.QuizType,
|
||||
CurrentTypeId = viewModel.CurrentTypeId
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(viewModel.CurrentQuestion.Text))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return View("quiz", viewModel);
|
||||
GetQuestion(newViewModel);
|
||||
|
||||
return View("quiz", newViewModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user