public Comment SaveMilestoneComment(Milestone milestone, Comment comment) { _engineFactory.GetCommentEngine().SaveOrUpdate(comment); NotifyNewComment(comment, milestone); TimeLinePublisher.Comment(milestone, EngineResource.ActionText_Add); return(comment); }
public Comment SaveMessageComment(Message message, Comment comment) { ProjectSecurity.DemandRead(message); _engineFactory.GetCommentEngine().SaveOrUpdate(comment); NotifyComment(comment, message); TimeLinePublisher.Comment(message, EngineResource.ActionText_Add); return(comment); }
public Comment SaveOrUpdateTaskComment(Task task, Comment comment) { ProjectSecurity.DemandRead(task); _factory.GetCommentEngine().SaveOrUpdate(comment); NotifyNewComment(comment, task); SubscribeToTask(task, SecurityContext.CurrentAccount.ID); TimeLinePublisher.Comment(task, EngineResource.ActionText_Add); return(comment); }