Example #1
0
        public virtual SongComment CreateComment(string message, AgentLoginData loginData)
        {
            ParamIs.NotNullOrEmpty(() => message);
            ParamIs.NotNull(() => loginData);

            var comment = new SongComment(this, message, loginData);

            Comments.Add(comment);

            return(comment);
        }
Example #2
0
        public virtual bool Equals(SongComment another)
        {
            if (another == null)
                return false;

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

            if (Id == 0)
                return false;

            return this.Id == another.Id;
        }
Example #3
0
        public virtual bool Equals(SongComment another)
        {
            if (another == null)
            {
                return(false);
            }

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

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

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