Skip to content

Commit

Permalink
Merge pull request #15063 from Ahmad-Nidal/patch-1
Browse files Browse the repository at this point in the history
Update tutorial Part-9.md
  • Loading branch information
EngincanV authored Dec 12, 2022
2 parents aba814d + 04c5d0f commit 3a3139b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/en/Tutorials/Part-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -1115,8 +1115,8 @@ namespace Acme.BookStore.Blazor.Pages
private async Task OnDataGridReadAsync(DataGridReadDataEventArgs<AuthorDto> e)
{
CurrentSorting = e.Columns
.Where(c => c.Direction != SortDirection.None)
.Select(c => c.Field + (c.Direction == SortDirection.Descending ? " DESC" : ""))
.Where(c => c.SortDirection != SortDirection.Default)
.Select(c => c.Field + (c.SortDirection == SortDirection.Descending ? " DESC" : ""))
.JoinAsString(",");
CurrentPage = e.Page - 1;

Expand Down Expand Up @@ -1166,7 +1166,7 @@ namespace Acme.BookStore.Blazor.Pages

private async Task CreateAuthorAsync()
{
if (CreateValidationsRef.ValidateAll())
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())
if (await EditValidationsRef.ValidateAll())
{
await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor);
await GetAuthorsAsync();
Expand Down

0 comments on commit 3a3139b

Please sign in to comment.