public List <Artist> GetAllArtists() { List <Artist> artists = new List <Artist>(); CoreToDataMapperService mapperService = new CoreToDataMapperService(); foreach (IArtist artistData in _artistRepository.GetAllArtists()) { artists.Add(mapperService.MapArtistDataToCore(artistData)); } return(artists); }
public Artist GetArtist(int id) { CoreToDataMapperService mapperService = new CoreToDataMapperService(); return(mapperService.MapArtistDataToCore(_artistRepository.GetArtist(id))); }