public ActionResult Delete(int id, FormCollection collection) { try { //if (ModelState.IsValid) // { da.DeleteRestaurant(id); return(RedirectToAction("Index")); // } //return View(); } catch { return(View()); } }
public ActionResult Delete(int id, FormCollection collection) { try { //if (ModelState.IsValid) // { da.DeleteRestaurant(id); return(RedirectToAction("Index")); // } //return View(); } catch { return(View()); } }