When an agreement is discovered to be void, or when a contract becomes void, any person who has received any advantage under such agreement or contract is bound to restore it, or to make compensation for it to the person from whom he received it. Illustrations (a) A pays B 1,000 rupees in consideration of B's promising to marry C, A's daughter...