The plaintiffs, as assignees, represent the creditors of the corporation, and as such take all the assets and rights of the corporation existing at the time of their appointment. The defendants having received the money upon the note, now insist it was not within the charter powers of the company to take the note by way of discounting the same to the defendants. The defendants were willing, at the time they presented the note to the company’s officers and asked for the money upon it, to assume and act as though they believed the officers of the company had power to discount the note. It is highly inequitable to allow the defendants, when palled upon to pay back the money to make good their promise made at the time of the loan, to insist that the company exceeded its charter powers'when it parted with its money. The defense assumes that the corporation had no power to loan money upon the note in question. The act of 1868 incorporating the company, declared that the company shall possess .the general powers and privileges, and be subject to the liabilities and restrictions contained in title 3 of chapter 18 of the first part of the Revised Statutes, so far as applicable thereto.
Section 1 of the third title of the Revised Statutes referred to authorizes corporations “ to hold, purchase .and convey such real and personal estate as the purposes of the corporation shall require, not exceeding the amount limited in its charter.” There was no proof given in this case that the personal estate—the note — was not taken within the purposes of the corporation, and was not required to invest its deposits or to invest “ funds accumulated by its business.”
*509But if we assume, as do the defendants, that the discounting of the note was not taken as an investment in the enumerated sections referred to in the eleventh section of the act, then it becomes important to determine .whether it was prohibited from taking the note.
There is no express prohibition in the act of 1868.
Section 3 of the third title of the Revised Statutes provides that “ no corporation shall possess or exercise any corporate powers except such as shall be necessary to the exercise of the powers so enumerated.” It seems one of the powers conferred upon this corporation was to receive deposits and to keep them invested in a particular class of securities. But does such limitation apply to the “ capital stock” of the corporation referred to in the first part of section 11 of the act of 1868?
The defendants further insist that section 4 of article 8 of the Constitution, applied to this corporation, prohibits it from exercising any of the powers of a corporation for “ banking purposes.” -But considering that a special charter could not be granted under the Constitution as it was prior to the amendment of section 4 of article 8, in 1874, does it follow that the .investment by the corporation organized under the act of 1868 could not invest “ its capital ” in good “ securities,” even though they were of no higher grade than promissory notes, well indorsed ?
But if we proceed with the assumption made by the defendants, that the corporation was not authorized to loan upon the note and indorsement in suit, does it follow that the defendants can successfully raise the question and resist payment ?
A similar defense was attempted fifty years ago, before the chancellor, in Silver Lake Bank agt. North (4 Johns. Ch., 370), and repudiated by the chancellor. It was there claimed that the plaintiffs had passed the bounds of their charter in taking a mortgage upon a loan. The chancellor said: “ If this objection was strictly true, in point of fact, I should not readily listen to it.. Perhaps it would be sufficient for this *510case, that the plaintiffs are a duly incorporated body, with authority to contract and take mortgages and judgments, am,d if they pass the exact lime of their power, it would rather belong to the government of Pennsylvania to exact a forfeiture of their charter than for this court, in a 'collateral way, to decide a question of misuser by setting aside a just and bona fide contract.” A like defense was attempted in Glass Company agt. Dewey (16 Mass., 102). The court said : “ The defendant cannot resist payment on this ground, but the legislature may enforce the prohibition by causing the charter to be revoked when they shall determine that it has been abusedand doubtful power exercised by a corporation was held valid in Moss agt. Rapie Lead Mining Company (5 Hill, 137). In that case judge Bbohsoh dissented, but complaining of it, was constrained to follow it, in State of Indiana agt. Woram (6 Hill, 37). Judge Demo, states the same doctrine in Palmer agt. Lawrence (3 Sand. S. C., 174), says: “ It would be in the highest degree inequitable and unjust to permit him to rescind a contract, the funds of which he retains and can never be compelled to restore.” The principle was asserted in Steam Navigation Company agt. Weed (17 Barb., 380). Sedgwick on Statutory and Constitutional Law (page 90) says: That the invalidity of contracts made in violation of statutes is subject to the equitable exception that although a corporation in making a contract acts in disagreement with its charter when it is a simple question of capacity or authority to contract. Assuming either on a question of regularity of organization or a power confirmed by its charter, a party who has the benefit of the agreement cannot be permitted, in an action founded on it, to question its validity. It would be in the highest degree inequitable and unjust to permit the defendant to repudiate a contract, the profit of which he retains.” This principle is cited and approved by justice Swayne, in Township of P. G. agt. Talcull (19 Wall., 678, 679). This principle was applied by me two years ago *511to the Skaneateles Savings Bank cases, against a borrower who set up some want of power in the bank to take notes, and the cases were sustained, the general term in this department affirming judgments in favor of the bank.
Upon another ground the plaintiffs are entitled to recover the money advanced to the defendants.
If it be assumed, as is the argument of the defendants, that the note and indorsement were void when taken by the corporation, then the same being avoided by the defendants, the money should be returned to the lender or its assignees, for, in equity, the money should never have been taken by these defendants upon a voidable or void security. The action for money had and received will lie under, such circumstances. The transaction was not malum, in se and the lender may recover (Tracy agt. Talmage, 14 N. Y., 162; The Oneida Bank agt. The Ontario Bank, 21 id., 490). The last ease was approved by Hunt, J., in Mayor agt. Ray (19 Wall., 484), and he points out the distiction between cases ultra vires and cases prohibited by law, and that class of cases where the borrower has received and actually retained the money. The case in Y Wendell, 31, cited by defendants, shows the defendants did not have any of the money, and, therefore, it differs from this case. In case- 19 Johnson 1, the court at the close of the opinion seems to favor the right of recovery for money had and received.
For the power of the plaintiff to recover the assets which have been improperly parted with by the corporation, see 48 Barbour, 463 ; and 5 Abbott (N. S.), 9; and opinion of Grover, J., Gillet, receiver, agt. Phelps (13 N. Y. [3 Kern], 114); act of 1858, chapter 314. These views lead to the conclusion that the defense attempted is unavailing here to the defendants, and that the plaintiffs, as assignees, are entitled to recover upon the note and the amount thereof with interest and expenses of protest, or for money had and received, to the extent advanced by the corporation to the defendant, with interest and costs of this action.