Exemple #1
0
        public async Task <List <AlbumDTO> > GetAllAlbums()
        {
            var response = await _albumsInterface.GetAllAlbums();

            var albums = response.Select(x => new AlbumDTO
            {
                Id    = x.Id,
                Title = x.Title
            }).ToList();

            return(albums);
        }