A quasi contract is an obligation created by law to prevent the unjust enrichment of one party at the expense of another.