public void AddComment(ModelComment comment) { if (comments.FirstOrDefault(c => c.CommentId.Equals(comment.CommentId)) == null) { comments.Add(comment); } }
public void addNestedComment(ModelComment comment) { nestedComment.Add(comment); }