Thus, this legality of a contract is governed by section 23 of the Indian Contract Act, 1872, which clearly defines the conditions on which the purpose and consideration of an agreement is considered lawful. These conditions include: 1. Should not be prohibited by law from placing the parties in the position they were in before the illegal agreement fulfils the legal considerations which, in this case, were contrary to the doctrine of illegality. Prostitution in India is considered legal under the Immoral Traffic (Prevention) Act of 1956, but the treatment of prostitutes has always been considered immoral and considered. This means that any type of agreement reached by a party with a prostitute to provide him with property to help him in his profession is considered illegal, as it is immoral and the price to be paid becomes irremediable. Pearce v. Brookes stated that the money obtained by selling an item to a prostitute on credit or the rent to be obtained by providing rental-purchase items intended to be supported in his profession could not be recovered because the agreement is immoral and therefore illegal. Immoral agreements will never be tested because of the application of Section 23 of the Indian Contract Act, 1872. All agreements, where they have been found to be contrary to or contrary to recognized normal moral standards, are considered invalid and illegal because they are immoral. Immorality has never been accepted in its long time, so the law will never allow it to continue to be accepted in the future. The scope of immoral agreements will continue to change as time evolves, but will never be within the scope of Section 23, making them illegal and unenforceable. As in the first place, contracts between unmarried persons for cohabitation were deemed unenforceable and illegal for the promotion of immorality. To Fender v.
John-Mildmay it was found that an immoral promise between a single man and an unmarried woman to live together without marriage could not be imposed by law. Such an agreement was deemed illegal because of immorality. But over time, the law has changed, and now unmarried men and women have permission to live together and maintain a domestic relationship without marrying. But “extramarital” cohabitation is still considered immoral and therefore unenforceable. The knowledge of the prostitution profession of the other party and the purpose for which the products for which it is to be used are therefore two important factors in entering into a contract with an illegal prostitute for immorality.