@Override
    Integer redactEntity(Criteria criteria, AbstractDao dao) throws DaoException {
        Integer idOrder = (Integer) criteria.getParam(DAO_ID_TOURIST);
        if (idOrder != null) {
            return updateTourist(criteria, dao);
        } else {
            return createTourist(criteria, dao);
        }
    }