fix 500 on question update
This commit is contained in:
parent
fbc8f26580
commit
00b422b8f3
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ public class QuestionController : ControllerBase
|
|||
{
|
||||
var question = QuestionMapper.QuestionUpdateToModel(dto, id);
|
||||
await _questionService.UpdateQuestionAsync(question);
|
||||
var result = QuestionMapper.ModelToQuestionDto(question);
|
||||
return Ok(result);
|
||||
var updatedQuestion = await _questionService.GetQuestionByIdAsync(id);
|
||||
return Ok(updatedQuestion);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue