Exemplo n.º 1
0
        public ActionResult UnfinishedHotelNotSelected(long bookingId)
        {
            eBidding objdata = new eBidding();

            objdata                     = BL_Bidding.GetSearchedBidHotelsListForUnfinished(bookingId);
            objdata.iBookingId          = (int)bookingId;
            TempData["BidSearchHotels"] = objdata;
            return(View(objdata));
        }
Exemplo n.º 2
0
        public ActionResult GetBidSearchedHotels(string bookingId)
        {
            int bookId = Convert.ToInt32(clsUtils.Decode(bookingId));


            //fetch the data of booking
            var booking = BL_Booking.GetBooking(bookId);

            if (booking.iPropId != null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            eBidding objdata = new eBidding();

            objdata = BL_Bidding.GetSearchedBidHotelsListForUnfinished(bookId);

            if (objdata.lstBidRoomsData.Count > 0)
            {
                DataTable dtPropIds = new DataTable();
                dtPropIds.Columns.AddRange(new DataColumn[1]
                {
                    new DataColumn("Id", typeof(int))
                });

                foreach (var item in objdata.lstBidRoomsData)
                {
                    DataRow drpropid = dtPropIds.NewRow();
                    drpropid["Id"] = item.iPropId;
                    dtPropIds.Rows.Add(drpropid);
                }

                BL_PropDetails.UpdateViewForConversion("B", dtPropIds, bookId);
            }
            objdata.iBookingId               = bookId;
            objdata.BidSearchHotels          = "BidSearchHotels" + Guid.NewGuid().ToString();
            Session[objdata.BidSearchHotels] = objdata;
            return(View(objdata));
        }