public async Task <AllBookOutput> GetAllByAuthorIdAsync(AllBookInput <int> input) { var author = await _authorCache.GetAsync(input.Id); if (author == null) { throw new UserFriendlyException(404, L("PageNotFoundTitle"), L("PageNotFoundDetails")); } var builder = new BookByAuthor(input.Id); var books = await GetAll(input, builder); var header = L("BookByAuthorHeader", author.Name); return(new AllBookOutput(books, header)); }
private void booksByAuthorBtn_Click(object sender, EventArgs e) { var rptBookByAuth = new BookByAuthor(); Nav(rptBookByAuth, contentPanel); }