public IActionResult Index(SortFilterPageOptions options, [FromServices] IListBooksService service) { var output = service.SortFilterPage(options).ToList(); SetupTraceInfo(); return(View(new BookListCombinedDto(options, output))); }
public async Task <IActionResult> Index(SortFilterPageOptions options, [FromServices] IListBooksService service) { var bookList = await(await service.SortFilterPageAsync(options)) .ToListAsync(); SetupTraceInfo(); return(View(new BookListCombinedDto(options, bookList))); }