public virtual bool AddTerm(string listId, string term, string language) { return(PolicyService.ExecuteRetryAndCapture400Errors( "ContentModeratorService.AddTerm", ApiKeys.ContentModeratorRetryInSeconds, () => { ContentModeratorRepository.AddTerm(listId, term, language); return true; }, false)); }
public virtual bool AddTerm(string listId, string term, string language) { try { ContentModeratorRepository.AddTerm(listId, term, language); return(true); } catch (Exception ex) { Logger.Error("ContentModeratorService.AddTerm failed", this, ex); } return(false); }