private void CheckComment(string commentMsg) {

			var comment = new AlbumComment(album, commentMsg, new AgentLoginData(agentName));

			repository.HandleTransaction(ctx => {
				new UserCommentNotifier().CheckComment(comment, entryLinkFactory, ctx);				
			});

		}
Пример #2
0
        public virtual Comment CreateComment(string message, AgentLoginData loginData)
        {
            ParamIs.NotNullOrEmpty(() => message);
            ParamIs.NotNull(() => loginData);

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

            Comments.Add(comment);

            return(comment);
        }
Пример #3
0
        public virtual bool Equals(AlbumComment another)
        {
            if (another == null)
                return false;

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

            if (Id == 0)
                return false;

            return this.Id == another.Id;
        }
Пример #4
0
        public virtual bool Equals(AlbumComment another)
        {
            if (another == null)
            {
                return(false);
            }

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

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

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