Any contract, express or implied, made by any person in violation of any of the provisions of this chapter, is illegal and void and no recovery shall be had thereon.