コード例 #1
0
        public static async Task <IList <WebPlaylistItem> > ProcessAsync(IOwinContext context, string playlistId, int start, int end, string filter, WebSortField?sort, WebSortOrder?order)
        {
            var output = await GetPlaylistItems.ProcessAsync(context, playlistId, filter, sort, order);

            // get range
            output = output.TakeRange(start, end).ToList();
            return(output);
        }
コード例 #2
0
        public static async Task <WebIntResult> ProcessAsync(IOwinContext context, string playlistId, string filter)
        {
            var output = await GetPlaylistItems.ProcessAsync(context, playlistId, filter, null, null);

            return(new WebIntResult {
                Result = output.Count()
            });
        }