/// <summary>Converts the specified artist list.</summary> /// <param name="artistList">The artist list.</param> /// <returns>An observable collection of bindable artists</returns> public ObservableCollection<BindableArtist> Convert(List<Artist> artistList) { var bindableArtists = new ObservableCollection<BindableArtist>(); foreach (var artist in artistList) { var bindableArtist = new BindableArtist { Name = artist.GetName(), Id = artist.Id }; bindableArtists.Add(bindableArtist); } return bindableArtists; }
/// <summary>Converts the specified artist list.</summary> /// <param name="artistList">The artist list.</param> /// <returns>An observable collection of bindable artists</returns> public ObservableCollection <BindableArtist> Convert(List <Artist> artistList) { var bindableArtists = new ObservableCollection <BindableArtist>(); foreach (var artist in artistList) { var bindableArtist = new BindableArtist { Name = artist.GetName(), Id = artist.Id }; bindableArtists.Add(bindableArtist); } return(bindableArtists); }