public ActionResult Create(Restaurant res)
 {
     try
     {
         // TODO: Add insert logic here
         restaurants.InsertPlace(res);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 public ActionResult EditConfirmed(Restaurant res)
 {
     try
     {
         restaurants.UpdatePlace(res);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
Example #3
0
 public Restaurant(Restaurant r)
     : this(r.CoordinatesPlace, r.Name, r.Likes, r.seatingCapacity, r.additionalInformation, r.priceCategory, r.Rating, r.Description, r.WorkingTime)
 {
 }