public override async Task <TEntity?> DeleteAsync(Guid id, IBioRepositoryOperationContext?operationContext = null) { var entity = await base.DeleteAsync(id, operationContext); if (entity != null) { await BlocksHelper.DeleteBlocksAsync(entity, DbContext); await DbContext.SaveChangesAsync(); } return(entity); }