Esempio n. 1
0
        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);
        }