Exemplo n.º 1
0
 public async Task <IActionResult> SubmitAnswer(
     string quizId, string questionId, [FromBody] AnswerSchema answer)
 {
     if (answer.Type == 2)
     {
         return(await _quizService.CheckTrueFalseAnswer(questionId, answer.Solution));
     }
     return(await _quizService.CheckAnswer(questionId));
 }