Ejemplo n.º 1
0
        public static async Task <IList <WebGenre> > ProcessAsync(IOwinContext context, int start, int end, WebSortField?sort, WebSortOrder?order)
        {
            IEnumerable <WebGenre> output = await GetTVShowGenres.ProcessAsync(context, sort, order);

            // get range
            output = output.TakeRange(start, end);
            return(output.ToList());
        }
Ejemplo n.º 2
0
        public static async Task <WebIntResult> ProcessAsync(IOwinContext context)
        {
            var output = (await GetTVShowGenres.ProcessAsync(context, null, null)).ToList();

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