public GroupForArtistContract(GroupForArtist groupForArtist, ContentLanguagePreference languagePreference) { ParamIs.NotNull(() => groupForArtist); Group = new ArtistWithAdditionalNamesContract(groupForArtist.Group, languagePreference); Id = groupForArtist.Id; Member = new ArtistWithAdditionalNamesContract(groupForArtist.Member, languagePreference); }
public virtual bool Equals(GroupForArtist another) { if (another == null) return false; if (ReferenceEquals(this, another)) return true; return this.Id == another.Id; }
public virtual GroupForArtist AddGroup(Artist grp) { ParamIs.NotNull(() => grp); var link = new GroupForArtist(grp, this); AllGroups.Add(link); grp.AllMembers.Add(link); return(link); }
public virtual bool Equals(GroupForArtist another) { if (another == null) { return(false); } if (ReferenceEquals(this, another)) { return(true); } return(this.Id == another.Id); }