Ejemplo n.º 1
0
        public static async Task <IList <WebProgramBasic> > ProcessAsync(IOwinContext context, string searchTerm, int start, int end)
        {
            IList <WebProgramBasic> output = await SearchProgramsBasic.ProcessAsync(context, searchTerm);

            // Get Range
            output = output.TakeRange(start, end).ToList();
            return(output);
        }
Ejemplo n.º 2
0
        public static async Task <WebIntResult> ProcessAsync(IOwinContext context, string searchTerm)
        {
            IList <WebProgramBasic> output = await SearchProgramsBasic.ProcessAsync(context, searchTerm);

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