Exemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync()
        {
            var authorInPaginationModel = new AuthorFilterAndPaginationModel
            {
                AuthorFilterModels     = new AuthorFilterModel(),
                PaginationFilterModels = new PaginationFilterModel()
            };

            PagedPesponse = await _authorService.GetFilteredAuthorsAsync(authorInPaginationModel.AuthorFilterModels, authorInPaginationModel.PaginationFilterModels);

            return(Page());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetAuthorsAsync(AuthorFilterAndPaginationModel model)
        {
            var authors = await _authorService.GetFilteredAuthorsAsync(model.AuthorFilterModels, model.PaginationFilterModels);

            return(Ok(authors));
        }