Skip to content

Commit

Permalink
Update Part-9.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EngincanV authored Dec 12, 2022
1 parent 26fc40e commit 04c5d0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/Tutorials/Part-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 04c5d0f

Please sign in to comment.