public int Update(UpdateQuestionRequestModel model) { var question = _repo.GetById(model.Id); question.Text = model.Text; question.Complexity = model.Complexity; question.Theme = (Theme)model.Theme; return(_repo.Update(question)); }
public IActionResult Update(UpdateQuestionRequestModel model) { return(Ok(_question.Update(model))); }