The board may maintain such action or proceeding at law or in equity as the board considers necessary or appropriate to secure compliance with this chapter and its rules and orders thereunder. The attorney general may assign an assistant attorney general as legal adviser and counsel to both the board and the division. The attorney general is responsible for representing the personnel system in all legal contexts.