Exemple #1
0
        public async Task <SearchResponse> Search(SearchRequest model)
        {
            try
            {
                var request = new RestRequest(AppConstants.GetSearch(model?.SearchName), DataFormat.None);

                return(await client.GetAsync <SearchResponse>(request));
            }
            catch (Exception e)
            {
                await LoggerService.Write("DataService", e.ToString());

                return(null);
            }
        }