private async Task <IEnumerable <AlbumViewModel> > GetNumberOfAlbums(string num, CancellationToken token) { int numInt = int.Parse(num); var result = await albumsService.GetNumberOfAlbums(numInt); return(result.Select(x => new AlbumViewModel(x))); }
private async Task <IEnumerable <AlbumViewModel> > GetNumberOfAlbums(string num, CancellationToken token) { int numInt = int.Parse(num); var result = await albumsService.GetNumberOfAlbums(numInt); return(result.Select(x => new AlbumViewModel(x))); }