Ejemplo n.º 1
0
        /// <summary>
        /// Action To Get Hotel Room For Update
        /// By Given HotelRoom Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult EditHotelRoom(int id)
        {
            DropDownList();
            HotelRoom hotelroom = hotelManager.EditHotelRoom(id);

            return(View(hotelroom));
        }
 /// <summary>
 /// Action To display All Avalable Room
 /// By Given Hotel Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult Booking(int id)
 {
     try
     {
         CreateSession();
         SearchInfo info       = searchManager.GetSearchInfo();
         decimal    billAmount = (decimal)hotelManager.GetTotalBill(info, id);
         TempData["TotalCost"] = billAmount;
         ViewBag.SearchInfo    = info;
         ViewBag.TotalCost     = billAmount;
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
     return(View(hotelManager.EditHotelRoom(id)));
 }