示例#1
0
 public ActionResult Delete(int id, Contact contact)
 {
     try
     {
         _contactQueries.Delete(contact);
         return(RedirectToAction("Index"));
     }
     catch (Exception exception)
     {
         return(View());
     }
 }