Browse Source

Merge pull request #15068 from abpframework/auto-merge/rel-7-0/1575

Merge branch dev with rel-7.0
pull/15090/head
Engincan VESKE 4 years ago
committed by GitHub
parent
commit
2c28c3f7f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      docs/en/Tutorials/Part-9.md

8
docs/en/Tutorials/Part-9.md

@ -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;
@ -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();
@ -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();

Loading…
Cancel
Save