Ejemplo n.º 1
0
        public async Task <ActionResult <PlaylistShortResponse> > Get(GetPlaylistsRequest playlistsRequest)
        {
            var playlists = await _playlistManager.GetAsync(playlistsRequest.ToDomain(), Cancel);

            SetTotalCountHeader(playlists.TotalCount);
            return(Ok(playlists.Items.Select(x => new PlaylistShortResponse(x))));
        }