Пример #1
0
 public Comment SaveMilestoneComment(Milestone milestone, Comment comment)
 {
     _engineFactory.GetCommentEngine().SaveOrUpdate(comment);
     NotifyNewComment(comment, milestone);
     TimeLinePublisher.Comment(milestone, EngineResource.ActionText_Add);
     return(comment);
 }
Пример #2
0
 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);
 }
Пример #3
0
        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);
        }