コード例 #1
0
        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);
        }
コード例 #2
0
        public Artist GetArtist(int id)
        {
            CoreToDataMapperService mapperService = new CoreToDataMapperService();

            return(mapperService.MapArtistDataToCore(_artistRepository.GetArtist(id)));
        }