public virtual ActionResult Edit(AnswerViewModel model) { if (ModelState.IsValid) { var answer = _answersRepository.GetById(model.AnswerId); answer.OrderNumber = model.OrderNumber; answer.Description = model.Description; answer.Value = model.Value; answer.Points = model.Points; _answersRepository.Update(answer); return(RedirectToAction(MVC.Admin.Answers.List(model.QuestionId))); } return(View(model)); }