From 04c5d0f5aea1d5eb45ad543485c32acd89303746 Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Mon, 12 Dec 2022 07:30:06 +0000 Subject: [PATCH] Update Part-9.md --- docs/en/Tutorials/Part-9.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/Tutorials/Part-9.md b/docs/en/Tutorials/Part-9.md index 2e389cc5b53..76d6d9c8d8b 100644 --- a/docs/en/Tutorials/Part-9.md +++ b/docs/en/Tutorials/Part-9.md @@ -1166,7 +1166,7 @@ namespace Acme.BookStore.Blazor.Pages private async Task CreateAuthorAsync() { - if (CreateValidationsRef.ValidateAll() != null) + if (await CreateValidationsRef.ValidateAll()) { await AuthorAppService.CreateAsync(NewAuthor); await GetAuthorsAsync(); @@ -1176,7 +1176,7 @@ namespace Acme.BookStore.Blazor.Pages private async Task UpdateAuthorAsync() { - if (EditValidationsRef.ValidateAll() != null) + if (await EditValidationsRef.ValidateAll()) { await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor); await GetAuthorsAsync(); @@ -1208,7 +1208,7 @@ Open the `BookStoreMenuContributor.cs` in the `Acme.BookStore.Blazor` project an ````csharp if (await context.IsGrantedAsync(BookStorePermissions.Authors.Default)) { - context.Menu.AddItem(new ApplicationMenuItem( + bookStoreMenu.AddItem(new ApplicationMenuItem( "BooksStore.Authors", l["Menu:Authors"], url: "/authors"