public GroupForArtistContract(GroupForArtist groupForArtist, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => groupForArtist);

            Group = new ArtistWithAdditionalNamesContract(groupForArtist.Group, languagePreference);
            Id = groupForArtist.Id;
            Member = new ArtistWithAdditionalNamesContract(groupForArtist.Member, languagePreference);
        }
Esempio n. 2
0
        public virtual bool Equals(GroupForArtist another)
        {
            if (another == null)
                return false;

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

            return this.Id == another.Id;
        }
Esempio n. 3
0
        public virtual GroupForArtist AddGroup(Artist grp)
        {
            ParamIs.NotNull(() => grp);

            var link = new GroupForArtist(grp, this);

            AllGroups.Add(link);
            grp.AllMembers.Add(link);

            return(link);
        }
Esempio n. 4
0
        public virtual bool Equals(GroupForArtist another)
        {
            if (another == null)
            {
                return(false);
            }

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

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