예제 #1
0
 public ActionResult Create(Hotel hot)
 {
     try
     {
         // TODO: Add insert logic here
         hotels.InsertPlace(hot);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
예제 #2
0
 public Hotel(Hotel h)
     : this(h.CoordinatesPlace, h.Name, h.Likes, h.capacity, h.additionalInformation, h.priceCategory, h.Rating, h.WorkingTime)
 {
 }
예제 #3
0
 public Hotel(Hotel h)
     : this(h.CoordinatesPlace, h.Name, h.Likes, h.capacity, h.additionalInformation, h.priceCategory, h.Rating, h.WorkingTime)
 {
 }
예제 #4
0
 public ActionResult EditConfirmed(Hotel hot)
 {
     try
     {
         // TODO: Add update logic here
         hotels.UpdatePlace(hot);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }