Exemple #1
0
        public Star Star(string userId)
        {
            if (this.CreatedById != userId)
            {
                var notification = Notification.ShelfStarred(this);
                CreatedBy.Notify(notification);
            }

            return(new Star()
            {
                Shelf = this, UserId = userId
            });
        }