public virtual bool CreateOrUpdateWorkflow(string teamName, string workflowName, WorkflowExpression expression) { try { var result = Task.Run(async() => await ContentModeratorRepository.CreateOrUpdateWorkflowAsync(teamName, workflowName, expression)).Result; return(result); } catch (Exception ex) { Logger.Error("ContentModeratorService.CreateOrUpdateWorkflow failed", this, ex); } return(false); }