public virtual NewsSearchTrendResponse TrendingSearch() { return(PolicyService.ExecuteRetryAndCapture400Errors( "NewsSearchService.TrendingSearch", ApiKeys.BingSearchRetryInSeconds, () => { var result = NewsSearchRepository.TrendingSearch(); return result; }, null)); }
public virtual NewsSearchTrendResponse TrendingSearch() { try { var result = NewsSearchRepository.TrendingSearch(); return(result); } catch (Exception ex) { Logger.Error("AutoSuggestService.CategorySearch failed", this, ex); } return(null); }