예제 #1
0
        public async Task <Playlist> CopyPlaylist(Models.PlaylistRequest request)
        {
            var playlist  = Playlists.First(t => t.Id == request.PlaylistId);
            var savedCopy = await _spotifyWebApi.CreatePlaylist(playlist, SpotifyApi.Playlists(Me), Token);

            Playlists.Add(savedCopy);
            return(savedCopy);
        }