Beispiel #1
0
        public virtual Comment CreateComment(string message, AgentLoginData loginData)
        {
            var comment = new DiscussionComment(this, message, loginData);

            Comments.Add(comment);
            return(comment);
        }
Beispiel #2
0
        public virtual bool Equals(DiscussionComment another)
        {
            if (another == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, another))
            {
                return(true);
            }

            if (Id == 0)
            {
                return(false);
            }

            return(this.Id == another.Id);
        }