public IEnumerable <HotelRateProviderRes> RetrieveHotelRates(HotelPropertyProviderReq request) { List <HotelRateProviderRes> abccc = new List <HotelRateProviderRes>(); var response = new HotelBedsDetailsHandler().Execute(request); return(abccc); }
// // GET: /BBHotelDetails/ public ActionResult Index(FormCollection collection) { HotelBedsDetailsHandler hotelInfo = new HotelBedsDetailsHandler(); HotelAvailabilityProviderReq providerReq = new HotelAvailabilityProviderReq(); HotelSearchDto searchCriteria = new HotelSearchDto(); searchCriteria.HotelCodes = collection["hotelCode"]; searchCriteria.StartDate = collection["checkIn"]; searchCriteria.EndDate = collection["checkOut"]; Hotel hotelfiltered = new Hotel(); providerReq.CheckInDate = Convert.ToDateTime(collection["checkIn"]); providerReq.CheckOutDate = Convert.ToDateTime(collection["checkOut"]); providerReq.TotalAdults = Convert.ToInt32(collection["totalTravellers"]); providerReq.TotalRooms = Convert.ToInt32(collection["totalRooms"]); if (searchCriteria.HotelCodes.Length > 0) { providerReq.HotelCodes = searchCriteria.HotelCodes.Split(' ').ToList <string>(); } var hotelinfoRS = hotelInfo.Execute(providerReq).Hotels.FirstOrDefault(); return(View(hotelinfoRS)); }