public void DeletePermanently(long entityId) { var entity = _entityRepository.Get(entityId); if (entity != null) { _entityRepository.Remove(entity); _entityRepository.SaveChange(); } }