Browse Source

Add OnDeletingEntityAsync

pull/8921/head
Dominik Oswald 5 years ago
committed by GitHub
parent
commit
53ea77602e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

7
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

@ -485,7 +485,7 @@ namespace Volo.Abp.BlazoriseUI
try
{
await CheckDeletePolicyAsync();
await OnDeletingEntityAsync();
await AppService.DeleteAsync(entity.Id);
await OnDeletedEntityAsync();
}
@ -495,6 +495,11 @@ namespace Volo.Abp.BlazoriseUI
}
}
protected virtual Task OnDeletingEntityAsync()
{
return Task.CompletedTask;
}
protected virtual async Task OnDeletedEntityAsync()
{
await GetEntitiesAsync();

Loading…
Cancel
Save