public virtual ImageSearchResponse GetImages(string query, int count = 10, int offset = 0, string languageCode = "en-us", SafeSearchOptions safeSearch = SafeSearchOptions.Off)
 {
     return(PolicyService.ExecuteRetryAndCapture400Errors(
                "ImageSearchService.GetImages",
                ApiKeys.BingSearchRetryInSeconds,
                () =>
     {
         var result = ImageSearchRepository.GetImages(query, count, offset, languageCode, safeSearch);
         return result;
     },
                null));
 }
        public virtual ImageSearchResponse GetImages(string query, int count = 10, int offset = 0, string languageCode = "en-us", SafeSearchOptions safeSearch = SafeSearchOptions.Off)
        {
            try
            {
                var result = ImageSearchRepository.GetImages(query, count, offset, languageCode, safeSearch);

                return(result);
            }
            catch (Exception ex)
            {
                Logger.Error("ImageSearchService.GetImages failed", this, ex);
            }

            return(null);
        }