public void AddComment(TaskComment comment) { Comments.Add(comment); VerticalComments = null; VerticalComments = Comments; CountComment++; }
public TaskComment AddSystemComment(string commentary, int idUser) { TaskComment newComment = new TaskComment(); newComment.IDUser = idUser; newComment.IdTask = this.ID; newComment.CreateDate = DateTime.Now; newComment.Commentary = commentary; newComment.TypeCommentary = 1; Comments.Add(newComment); VerticalComments = null; VerticalComments = Comments; CountComment++; return(newComment); }