An agent represents his principal for all purposes within the scope of his actual or ostensible authority, and all the rights and liabilities which would accrue to the agent from transactions within such limit, if they had been entered into on his own account, accrue to the principal.
(Enacted 1872.)