private void AddWorkflowLog(ContentItem item, ContentWorkflowLogType logType, int userID)
        {
            var workflow = GetWorkflow(item);

            var comment = ReplaceNotificationTokens(GetWorkflowActionComment(logType), workflow, item, workflow.States.FirstOrDefault(s => s.StateID == item.StateID), workflow.PortalID, userID);

            AddWorkflowLog(workflow.WorkflowID, item, GetWorkflowActionText(logType), comment, userID);
        }
        private string GetWorkflowActionComment(ContentWorkflowLogType logType)
        {
            var logName = Enum.GetName(typeof(ContentWorkflowLogType), logType);

            return(Localization.GetString(logName + ".Comment"));
        }