Ejemplo n.º 1
0
        public void GetSearchResult()
        {
            try
            {
                SearchReq searchInputData = PreparesSearchObj();
                //map from general req to tbo req
                var TBOReq = SearchMapper.MapSearchReq(searchInputData);

                var searchResponse = SearchService.Search(TBOReq, searchData.sID);

                //save Provider session id in database
                SessionRepo manager = new SessionRepo();
                manager.SaveSessions(5, searchResponse.SessionId, searchData.sID, searchData.SearchRooms);

                searchOutputs = searchResponse.HotelResultList.ToList();
            }
            catch (Exception ex)
            {
                LoggingHelper.WriteToFile("TBOLogs/SearchController/Errors/", "TBOIntegrationManagement" + "INController" + searchData.sID, ex.InnerException?.Message, ex.Message + ex.StackTrace);

                throw ex;
            }
        }