// GET: AlbumController public async Task <ActionResult> IndexShowAllAlbums() { IEnumerable <Album> albums = await _albumsService.GetAllAlbums(); return(View(albums.ToList())); }
public async Task <AlbumsSelectionResult> GetAllAlbums([FromQuery] AlbumsSelectionParameters parameters) { return(await _albumsService.GetAllAlbums(parameters)); }