public Star Star(string userId) { if (this.CreatedById != userId) { var notification = Notification.ShelfStarred(this); CreatedBy.Notify(notification); } return(new Star() { Shelf = this, UserId = userId }); }
public Star Star(string userId) { if (this.CreatedById != userId) { var notification = Notification.ShelfStarred(this); CreatedBy.Notify(notification); } return(new Star() { Shelf = this, UserId = userId }); }