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