diff --git a/HrynCo.DAL.EF/Core/BaseEfRepository.cs b/HrynCo.DAL.EF/Core/BaseEfRepository.cs index 3f05392..aa23f0f 100644 --- a/HrynCo.DAL.EF/Core/BaseEfRepository.cs +++ b/HrynCo.DAL.EF/Core/BaseEfRepository.cs @@ -89,7 +89,7 @@ public abstract class BaseEfRepository : public async Task DeleteAsync(TEntityId id) { - TEntity? entity = GetById(id); + TEntity? entity = await GetByIdAsync(id); if (entity != null) { DoRemove(entity);