예제 #1
0
        public IActionResult AnswerQuestion([FromBody] RecievedAnswerDto answerDto)
        {
            var question = questionsRepository.FindById(answerDto.Id);

            return(Ok(question.AnswerQuestion(answerDto.Answer)));
        }