Beispiel #1
0
 public ActionResult DeleteRestaurant(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add delete logic here
         LibHelper.DeleteFromDatabase(id);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         return(View());
     }
 }