fix 500 on question update

This commit is contained in:
Вячеслав 2025-06-08 14:51:52 +05:00
parent fbc8f26580
commit 00b422b8f3

View file

@ -70,8 +70,8 @@ public class QuestionController : ControllerBase
{ {
var question = QuestionMapper.QuestionUpdateToModel(dto, id); var question = QuestionMapper.QuestionUpdateToModel(dto, id);
await _questionService.UpdateQuestionAsync(question); await _questionService.UpdateQuestionAsync(question);
var result = QuestionMapper.ModelToQuestionDto(question); var updatedQuestion = await _questionService.GetQuestionByIdAsync(id);
return Ok(result); return Ok(updatedQuestion);
} }
/// <summary> /// <summary>