Esempio n. 1
0
        public List <Album> GetAllAlbums()
        {
            List <Album>            albums        = new List <Album>();
            CoreToDataMapperService mapperService = new CoreToDataMapperService();

            foreach (IAlbum albumData in _albumRepository.GetAllAlbums())
            {
                albums.Add(mapperService.MapAlbumDataToCore(albumData));
            }
            return(albums);
        }
Esempio n. 2
0
        public Album GetAlbum(int id)
        {
            CoreToDataMapperService mapperService = new CoreToDataMapperService();

            return(mapperService.MapAlbumDataToCore(_albumRepository.GetAlbum(id)));
        }