public BlockRoomResponse BookRoom(BlockRoomRequest requestInfo)
        {
            BlockRoomResponse _RoomDetailResult = new BlockRoomResponse();

            try
            {
                requestInfo.EndUserIp = IPAddress;
                requestInfo.TokenId   = BLFunction.GetTokenID();
                requestInfo.TraceId   = BLFunction.GetTraceID();
                var jsonObject   = JsonConvert.SerializeObject(requestInfo);
                var qualifiedUrl = Baseurl + "/BookingEngineService_Hotel/hotelservice.svc/rest/Book";
                var result       = APIHotel.Instance().GetResponse(qualifiedUrl, Verbs.POST, jsonObject);
                if (result != null)
                {
                    _RoomDetailResult = JsonConvert.DeserializeObject <BlockRoomResponse>(result);
                }
            }
            catch (Exception ex)
            {
                string msg = ex.Message;
                _RoomDetailResult.BlockRoomResult.Error.ErrorCode    = 4;
                _RoomDetailResult.BlockRoomResult.Error.ErrorMessage = msg;
            }
            return(_RoomDetailResult);
        }
        public HotelRoomResult RoomDetails(GetHotelRoomRequest requestInfo)
        {
            HotelRoomResult _RoomDetailResult = new HotelRoomResult();

            try
            {
                GetHotelRoomRequest _requestInfo = new GetHotelRoomRequest();
                _requestInfo.EndUserIp   = IPAddress;
                _requestInfo.TokenId     = BLFunction.GetTokenID();
                _requestInfo.TraceId     = BLFunction.GetTraceID();
                _requestInfo.HotelCode   = requestInfo.HotelCode;
                _requestInfo.ResultIndex = requestInfo.ResultIndex;
                var jsonObject   = JsonConvert.SerializeObject(_requestInfo);
                var qualifiedUrl = Baseurl + "/BookingEngineService_Hotel/hotelservice.svc/rest/GetHotelRoom";
                var result       = APIHotel.Instance().GetResponse(qualifiedUrl, Verbs.POST, jsonObject);
                if (result != null)
                {
                    _RoomDetailResult = JsonConvert.DeserializeObject <HotelRoomResult>(result);
                }
            }
            catch (Exception ex)
            {
                string msg = ex.Message;
                _RoomDetailResult.GetHotelRoomResult.Error.ErrorCode    = 4;
                _RoomDetailResult.GetHotelRoomResult.Error.ErrorMessage = msg;
            }
            return(_RoomDetailResult);
        }