// GET: AlbumController
        public async Task <ActionResult> IndexShowAllAlbums()
        {
            IEnumerable <Album> albums = await _albumsService.GetAllAlbums();

            return(View(albums.ToList()));
        }
예제 #2
0
 public async Task <AlbumsSelectionResult> GetAllAlbums([FromQuery] AlbumsSelectionParameters parameters)
 {
     return(await _albumsService.GetAllAlbums(parameters));
 }