public ActionResult EditConfirmed(Restaurant res) { try { restaurants.UpdatePlace(res); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult EditConfirmed(Hotel hot) { try { // TODO: Add update logic here hotels.UpdatePlace(hot); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult EditConfirmed(GovernmentBuilding gb) { try { // TODO: Add update logic here governBuildings.UpdatePlace(gb); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult EditConfirmed(Cinema res) { try { // TODO: Add update logic here cinemas.UpdatePlace(res); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult EditConfirmed(Pharmacy pharm) { try { // TODO: Add update logic here pharmacies.UpdatePlace(pharm); return(RedirectToAction("Index")); } catch { return(View()); } }