If an agent acts in his own name, the principal has no right of action against the persons with whom the agent has contracted; neither have such persons against the principal.
In such case the agent is the one directly bound in favor of the person with whom he has contracted, as if the transaction were his own, except when the contract involves things belonging to the principal.
The provisions of this article shall be understood to be without prejudice to the actions between the principal and agent. (1717)