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