//SearchHotelsById - List of Rates //public HotelPropertyProviderRes RetrieveHotelInfo(string hotelCode) //{ // //HotelPropertyDescription call to return both // var request = new TE.Core.ServiceCatalogues.HotelCatalog.Provider.HotelPropertyProviderReq // { // HotelCode = hotelCode // }; // var propertyInfo = new TouricoRetrieveHotelPropertyHandler().Execute(request); // //propertyInfo.HotelInfo.PropertyInformation = propertyInfo.HotelDetails; // //propertyInfo.HotelInfo = propertyInfo.HotelInfo; // return propertyInfo; //} public IEnumerable<HotelRateProviderRes> RetrieveHotelRates(HotelPropertyProviderReq request) { var propertyInfo = new TouricoRetrieveHotelRateHandler().Execute(request); if (propertyInfo.HotelRates == null || !propertyInfo.HotelRates.Any()) { throw new ApplicationException("No rates were returned by the HotelPropertyDescription API."); } return propertyInfo.HotelRates; }
//public HotelPropertyProviderRes RetrieveHotelInfo(string hotelCode) //{ // //HotelPropertyDescription call to return both // var request = new TE.Core.ServiceCatalogues.HotelCatalog.Provider.HotelPropertyProviderReq // { // HotelCode = hotelCode // }; // var propertyInfo = new TouricoRetrieveHotelPropertyHandler().Execute(request); // //propertyInfo.HotelInfo.PropertyInformation = propertyInfo.HotelDetails; // //propertyInfo.HotelInfo = propertyInfo.HotelInfo; // return propertyInfo; //} public IEnumerable <HotelRateProviderRes> RetrieveHotelRates(HotelPropertyProviderReq request) //SearchHotelsById - List of Rates { var propertyInfo = new TouricoRetrieveHotelRateHandler().Execute(request); if (propertyInfo.HotelRates == null || !propertyInfo.HotelRates.Any()) { throw new ApplicationException("No rates were returned by the HotelPropertyDescription API."); } return(propertyInfo.HotelRates); }