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); }
public static async Task <WebIntResult> ProcessAsync(IOwinContext context, string searchTerm) { IList <WebProgramBasic> output = await SearchProgramsBasic.ProcessAsync(context, searchTerm); return(new WebIntResult { Result = output.Count }); }