Пример #1
0
        // GET: Room Details
        public ActionResult RoomInfo(string propid, string roomid)
        {
            TempData.Keep();
            RoomDetails objRoomDetails = BL_PropDetails.GetRoomDetails(Convert.ToInt32(propid), Convert.ToInt32(roomid), CurrencyCode);

            return(PartialView("pvRoomInfo", objRoomDetails));
        }
Пример #2
0
        // GET: Room Details
        public ActionResult RoomInfo(string propid, string roomid)
        {
            string      CurrencyCode   = Session["CurrencyCode"] != null ? Session["CurrencyCode"].ToString() : "INR";
            RoomDetails objRoomDetails = BL_PropDetails.GetRoomDetails(Convert.ToInt32(propid), Convert.ToInt32(roomid), CurrencyCode);

            return(PartialView("pvRoomInfo", objRoomDetails));
        }
Пример #3
0
        public ActionResult GetBidSearchedHotelDetails(string sPropId, string sRoomId)
        {
            if (!string.IsNullOrEmpty(sPropId))
            {
                string CurrencyCode = Session["CurrencyCode"] != null ? Session["CurrencyCode"].ToString() : "INR";

                int          propId    = Convert.ToInt32(clsUtils.Decode(sPropId));
                int          roomId    = Convert.ToInt32(clsUtils.Decode(sRoomId));
                PropDetailsM objSearch = new PropDetailsM();
                objSearch.iPropId    = propId;
                objSearch.dtCheckIn  = DateTime.Now.Date.AddDays(10);
                objSearch.dtCheckOut = DateTime.Now.Date.AddDays(11);
                objSearch.bLogin     = User.Identity.IsAuthenticated;
                objSearch.Currency   = CurrencyCode;

                #region RoomOccupancySearch

                DataTable dtRoomOccupancySearch = new DataTable();
                dtRoomOccupancySearch.Columns.AddRange(new DataColumn[3] {
                    new DataColumn("ID", typeof(int)),
                    new DataColumn("iAdults", typeof(short)),
                    new DataColumn("children", typeof(short))
                });


                DataTable dtChildrenAgeSearch = new DataTable();
                dtChildrenAgeSearch.Columns.AddRange(new DataColumn[2] {
                    new DataColumn("ID", typeof(int)),
                    new DataColumn("Age", typeof(short))
                });

                #endregion

                var propDetails = BL_PropDetails.GetPropertyDetails(propId, objSearch, dtRoomOccupancySearch, dtChildrenAgeSearch);
                var roomDetails = BL_PropDetails.GetRoomDetails(propId, roomId, CurrencyCode);
                propDetails.BidRoomDetails = roomDetails;

                return(View("_HotelDetails", propDetails));
            }

            return(View("Error"));
        }