Ejemplo n.º 1
0
        public async Task <IActionResult> List([FromQuery] ArtistPageParams artistParams)
        {
            var artists = await _artist.GetArtistsAsync(artistParams);

            Response.AddPagination(artists.CurrentPage, artists.ItemsPerPage,
                                   artists.TotalItems, artists.TotalPages);

            return(Ok(artists));
        }