public IActionResult Edit(int id, [Bind("Answer,IsAnswerCorrect,Id")] AnswerMultipleChoiceViewModel answerMultipleChoiceViewModel) { if (id != answerMultipleChoiceViewModel.Id) { return(NotFound()); } if (ModelState.IsValid) { try { AnswerMultipleChoice answerMultipleChoice = MapToAnswerMultipleChoice(answerMultipleChoiceViewModel); _answerMultipleChoiceManager.Update(answerMultipleChoice); } catch (DbUpdateConcurrencyException) { if (!AnswerMultipleChoiceExists(answerMultipleChoiceViewModel.Id)) { return(NotFound()); } else { throw; } } return(BackToQuestion()); } return(View()); }