Ejemplo n.º 1
0
        public ActionResult HotelReservation()
        {
            HotelReservation model = new HotelReservation();
            model.StartDate = DateTime.Now;
            ViewData["message"] = String.Empty;

            return View("hotel-reservation", model);
        }
Ejemplo n.º 2
0
 public ActionResult HotelReservation(HotelReservation model)
 {
     model.Save();
     ViewData["message"] = "Your room has been booked successfully. Thank you!";
     return View("hotel-reservation", model);
 }