public static ArtistsCollection GetArtistsByName(string name) { var result = new ArtistsCollection(); artists.Where(a => a.Name == name).ToList().ForEach(result.Add); return(result); }
public async Task LoadArtists() { RecordsLoading = true; if (ArtistsCollection?.Count != AlbumArtistService.ArtistsCount) { ArtistsCollection.AddRange(await AlbumArtistService.GetArtistsAsync().ConfigureAwait(false));//.Add(album); ArtistsCollection.CollectionChanged += ArtistsCollection_CollectionChanged; if (ArtistsCollection.Count <= 0) { RecordsLoading = false; } } else { RecordsLoading = false; } }