Пример #1
0
 public ActionResult DeleteConfirmed(int id)
 {
     try
     {
         Repository.DeleteUser(id);
         Repository.Save();
     }
     catch (DataException)
     {
         return(RedirectToAction("Delete", new { id, V = true }));
     }
     return(RedirectToAction("Index"));
 }