コード例 #1
0
 public ActionResult Create(Restaurant res)
 {
     try
     {
         // TODO: Add insert logic here
         restaurants.InsertPlace(res);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
コード例 #2
0
 public ActionResult EditConfirmed(Restaurant res)
 {
     try
     {
         restaurants.UpdatePlace(res);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
コード例 #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)
 {
 }