public static async Task <WebIntResult> ProcessAsync(IOwinContext context, string filter)
        {
            IList <WebMusicTrackBasic> output = await GetMusicTracksBasic.ProcessAsync(context, filter, null, null);

            return(new WebIntResult {
                Result = output.Count
            });
        }
示例#2
0
        public static async Task <IList <WebMusicTrackBasic> > ProcessAsync(IOwinContext context, int start, int end, string filter, WebSortField?sort, WebSortOrder?order)
        {
            var output = await GetMusicTracksBasic.ProcessAsync(context, filter, sort, order);

            // get range
            output = output.TakeRange(start, end).ToList();
            return(output);
        }