public void AddTrack(MediaBundle <Track> track) { Discs = Math.Max(Discs, track.Media.DiscNumber); Duration = Duration.Add(track.Media.Duration); ReleaseDate = Math.Max(ReleaseDate, track.Media.ReleaseDate); Tracks = Tracks.AddValueToCollection(track); Genres = Genres.AddValuesToCollection(track.Media.Genres); }
public void AddGenres(IEnumerable <Genre> genres) { Genres = Genres.AddValuesToCollection(genres); }