Inheritance: AbstractGenericResponse
        private HotelAvailabilityProviderRes ConvertToProviderResponse(AvailabilityRS request)
        {
            HotelAvailabilityProviderRes hotelResultRS = new HotelAvailabilityProviderRes();

            var hotels = new List<HotelSearchResultItem>();
            if (request?.hotels?.hotels != null && request.hotels.hotels.Any())
            {
                foreach (var htl in request.hotels.hotels)
                {
                    var searchResult = new HotelSearchResultItem()
                    {
                        HotelInfo = new HotelInfo()
                        {
                            HotelName = htl.name,
                            HotelCode = htl.code.ToString(),
                            Description = htl.zoneCode + ", " + htl.zoneName,
                            Rating = Convert.ToInt16(htl.categoryName.Split(HotelBedsConstants.SpaceSeperator)[0]),
                            PropertyInformation = new HotelPropertyDetail()
                            {
                                Latitude = Convert.ToDecimal(htl.latitude),
                                Longitude = Convert.ToDecimal(htl.longitude)
                            },

                        },
                        Price = new TE.DataAccessLayer.Models.TMoney()
                        {
                            Amount = htl.minRate,
                            Currency = new TE.DataAccessLayer.Models.TCurrency()
                            {
                                CurrencyCode = htl.currency
                            }
                        }

                    };
                    hotels.Add(searchResult);
                }
                hotelResultRS.Hotels = hotels;
            }
            else
                hotelResultRS.Hotels = null;

            return hotelResultRS;
        }
 private HotelAvailabilityProviderRes ConvertToProviderResponse(AvailabilityRS request)
 {
     Logger.Instance.LogFunctionEntry(this.GetType().Name, "ConvertToProviderResponse");
     HotelAvailabilityProviderRes hotelResultRS = new HotelAvailabilityProviderRes();
     //if (request.hotels != null)
     //    hotelResultRS.Hotels = request.hotels.hotels;
     //else
     //    hotelResultRS.Hotels = null;
     //Logger.Instance.LogFunctionExit(this.GetType().Name, "ConvertToProviderResponse");
     return hotelResultRS;
 }