Example #1
0
        public static async Task <IList <WebGenre> > ProcessAsync(IOwinContext context, int start, int end, string filter, WebSortField?sort, WebSortOrder?order)
        {
            var output = (await GetMovieGenres.ProcessAsync(context, sort, order))
                         .Filter(filter);

            // get range
            output = output.TakeRange(start, end);
            return(output.ToList());
        }
        public static async Task <WebIntResult> ProcessAsync(IOwinContext context, string filter)
        {
            var output = (await GetMovieGenres.ProcessAsync(context, null, null))
                         .Filter(filter);

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