Exemple #1
0
        public IActionResult Index(SortFilterPageOptions options, [FromServices] IListBooksService service)
        {
            var output = service.SortFilterPage(options).ToList();

            SetupTraceInfo();
            return(View(new BookListCombinedDto(options, output)));
        }
Exemple #2
0
        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)));
        }