Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f1371e33a | |||
| 9c1da388d8 |
@@ -89,7 +89,7 @@ public abstract class BaseEfRepository<TDbContext, TEntity, TEntityId> :
|
||||
|
||||
public async Task DeleteAsync(TEntityId id)
|
||||
{
|
||||
TEntity? entity = GetById(id);
|
||||
TEntity? entity = await GetByIdAsync(id);
|
||||
if (entity != null)
|
||||
{
|
||||
DoRemove(entity);
|
||||
|
||||
Reference in New Issue
Block a user