Beispiel #1
0
        public async Task <ActionResult> RemoveFromPlaylist(
            [FromRoute, Required] string playlistId,
            [FromQuery, ModelBinder(typeof(CommaDelimitedArrayModelBinder))] string[] entryIds)
        {
            await _playlistManager.RemoveFromPlaylistAsync(playlistId, entryIds).ConfigureAwait(false);

            return(NoContent());
        }
Beispiel #2
0
        public async Task <ActionResult> RemoveFromPlaylist([FromRoute, Required] string playlistId, [FromQuery] string?entryIds)
        {
            await _playlistManager.RemoveFromPlaylistAsync(playlistId, RequestHelpers.Split(entryIds, ',', true)).ConfigureAwait(false);

            return(NoContent());
        }