Contracts entered into through an agent, and obligations arising from acts done by an agent may be enforced in the same manner, and will have the same legal consequences, as if the contracts had been entered into and the acts done by the principal in person. Illustrations (a) A buys goods from B knowing that he is an agent for their sale, ...