Exemplo n.º 1
0
 public ActionResult Create(Restaurant res)
 {
     try
     {
         // TODO: Add insert logic here
         restaurants.InsertPlace(res);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult CreateConfirmed(GovernmentBuilding gb)
 {
     try
     {
         // TODO: Add insert logic here
         governBuildings.InsertPlace(gb);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemplo n.º 3
0
 public ActionResult Create(Hotel hot)
 {
     try
     {
         // TODO: Add insert logic here
         hotels.InsertPlace(hot);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult Create(Pharmacy pharm)
 {
     try
     {
         // TODO: Add insert logic here
         pharmacies.InsertPlace(pharm);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }