Пример #1
0
 public ActionResult DeleteConfirmed(int id)
 {
     Answer answer;
     using (Repos repo = new Repos())
     {
         answer = repo.GetAnswerByID(id);
         repo.DeleteAnswer(answer.AnswerID);
     }
     return RedirectToAction("Create", new { id = answer.ModuleID });
 }