示例#1
0
 public void AddComment(ModelComment comment)
 {
     if (comments.FirstOrDefault(c => c.CommentId.Equals(comment.CommentId)) == null)
     {
         comments.Add(comment);
     }
 }
示例#2
0
 public void addNestedComment(ModelComment comment)
 {
     nestedComment.Add(comment);
 }