Section 23. Any person in any executive or administrative department who is appointed to office by the governor, with the advice and consent of the council, and who is paid a salary, may be required by the governor, with like advice and consent, to give his whole time to the duties of his office.