diff --git a/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs b/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs index 9f1b5dc..670bb54 100644 --- a/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs +++ b/SurveyBackend/SurveyBackend.API/Controllers/QuestionController.cs @@ -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); } ///