Beispiel #1
0
        //[OutputCache(Duration = 60, VaryByParam = "*", VaryByCustom = "User")] // Cached for 60 second
        public PartialViewResult GetTGHotelListPartial(PropSearchRequestModel model)
        {
            eWebSiteSearchPage obj = new eWebSiteSearchPage();

            try
            {
                decimal dExchangeRate = 1;

                if (Session["PropSearchList"] != null)
                {
                    obj = Session["PropSearchList"] as eWebSiteSearchPage;
                }
                if (model.sRequestType == "buy")
                {
                    var TG_hotelList = Get_TG_HotelSearchData(model, out dExchangeRate);

                    obj.dExchangeRate          = dExchangeRate;
                    obj.TGPropertySearchedList = TG_hotelList;
                    obj.TotalPropertySearchedList.AddRange(obj.TGPropertySearchedList);
                }
                Session["PropSearchRequestModel"] = model;
                Session["PropSearchList"]         = obj;
            }
            catch (Exception)
            {
                // throw;
            }

            return(PartialView("_TGHotelList1", obj));
        }
Beispiel #2
0
        // [OutputCache(Duration = 10, VaryByParam = "*")] // Cached for 10 second
        public ActionResult Index(PropSearchRequestModel model)
        {
            try
            {
                eWebSiteSearchPage obj = new eWebSiteSearchPage();
                obj.HotelFacilityItems = BL_WebSiteSearchPage.GetAllHotelFacilities("");
                obj.RoomFacilityItems  = BL_WebSiteSearchPage.GetAllRoomFacilities("");
                model.sRequestType     = model.sRequestType ?? "buy";
                obj.sRequestType       = model.sRequestType;
                string currencySymbol = string.Empty;

                var hotelList = GetHotelSearchData(model, out currencySymbol);
                obj.PropertySearchedList = hotelList;
                obj.TotalPropertySearchedList.AddRange(obj.PropertySearchedList);
                obj.sCurrencySymbol       = currencySymbol;
                obj.dExchangeRate         = 1;
                Session["PropSearchList"] = obj;

                if (CurrencyCode != "INR")
                {
                    etblExchangeRatesM objExchange = BL_ExchangeRate.GetSingleRecordById("INR", CurrencyCode);
                    if (objExchange.dRate.HasValue)
                    {
                        obj.dExchangeRate = objExchange.dRate.Value;
                    }
                }
                TempData.Keep();
                return(View(obj));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #3
0
        public PartialViewResult GetHotelListPartial(PropSearchRequestModel model)
        {
            string             currencySymbol = string.Empty;
            var                hotelList      = GetHotelSearchData(model, out currencySymbol);
            eWebSiteSearchPage obj            = new eWebSiteSearchPage();

            obj.sRequestType         = model.sRequestType;
            obj.sCurrencySymbol      = currencySymbol;
            obj.PropertySearchedList = hotelList;
            obj.TotalPropertySearchedList.AddRange(obj.PropertySearchedList);
            Session["PropSearchList"] = obj;
            return(PartialView("_HotelList", obj));
        }
Beispiel #4
0
        public PartialViewResult GetMapViewPartial()
        {
            eWebSiteSearchPage obj = Session["PropSearchList"] as eWebSiteSearchPage;

            //var data = new List<eDropDown>();

            //if (obj != null && obj.TotalPropertySearchedList.Count > 0)
            //{
            //    data = obj.TotalPropertySearchedList.Select(x => new eDropDown { Id = x.iPropId, Name = x.sHotelName }).ToList();
            //}

            //Session["PropNameSearchList"] = data;

            return(PartialView("_MapView", obj));
        }