Example #1
0
        public SearchResultEntity SearchItems(string filter, int?offset, int?limit, ref string responseMessage)
        {
            try
            {
                if (!ValidateSearchItemsParameters(filter, offset, limit))
                {
                    return(null);
                }

                return(_externalService.SearchItems(filter, offset, limit, ref responseMessage));
            }
            catch (System.Exception ex)
            {
                _logger.Error(ex);
                responseMessage = ex.Message;
                return(null);
            }
        }