public IActionResult UpdateQuestonAnswer(int id, [FromBody] RequestUpdateQuestion model) { Question question; if (id != model.Id) { return(NotFound()); } if (ModelState.IsValid) { question = questionServices.UpdateQuestion(model); model.ToModel(question); questionServices.Commit(); return(Ok(model)); } else { return(BadRequest()); } }