Esempio n. 1
0
 public ActionResult EditConfirmed(Restaurant res)
 {
     try
     {
         restaurants.UpdatePlace(res);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Esempio n. 2
0
 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());
     }
 }
Esempio n. 4
0
 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());
     }
 }