public virtual AddImageResponse AddImage(string imageUrl, string listId, ContentModeratorTag tag = ContentModeratorTag.None, string label = "") { return(PolicyService.ExecuteRetryAndCapture400Errors( "ContentModeratorService.AddImage", ApiKeys.ContentModeratorRetryInSeconds, () => { var result = ContentModeratorRepository.AddImage(imageUrl, listId, tag, label); return result; }, null)); }
public virtual AddImageResponse AddImage(string imageUrl, string listId, ContentModeratorTag tag = ContentModeratorTag.None, string label = "") { try { var result = ContentModeratorRepository.AddImage(imageUrl, listId, tag, label); return(result); } catch (Exception ex) { Logger.Error($"ContentModeratorService.AddImage failed: {imageUrl}", this, ex); } return(null); }