The California Civil Code permits an agent to represent both the buyer and seller in a real estate transaction, so long as the agent receives consent from both parties after full disclosure.