A district attorney shall not receive any fee or reward from any private person for services in any criminal action, nor during the pendency of such prosecution can the district attorney act as attorney for either party in any civil action, suit or proceeding involving substantially the same controversy.
ORS 8.720