The action was brought to recover certain moneys collected through the agency of the board of supervisors and the county treasurer of Erie county, received by such county treasurer, belonging to the city of Tonawanda, in the county of Erie, and erroneously paid over by the county treasurer, to the defendant, the town of Tonawanda, in the years 1909 to 1913, inclusive, pursuant to warrants erroneously issued by such board of supervisors, directing such payments. For each of such years pursuant to section 24 of the Tax Law* the tax on the shares of the First National Bank of the city of Tonawanda was duly assessed and collected by the county treasurer. The city of Tonawanda is situated in the town of Tonawanda, in the county of Erie. The city of Tonawanda is and was during all such time a tax district, and all the moneys so collected belonged to such city and should have been paid into its treasury. (City of Utica v. Board of Supervisors, 109 App. Div. 189; People ex rel. City of Geneva v. Board of Supervisors, 188 N. Y. 1.) This proposition is conceded. In the warrant issued by the board of supervisors pursuant to this provision of the Tax Law, the supervisors erroneously directed the county treasurer to pay the moneys sought to be recovered in this action to the defendant, the town of Tonawanda. The demurrer attacks the complaint as not stating facts sufficient to constitute a cause of action, and on the further ground that the plaintiff has not legal capacity to sue. The action is brought by the county of Erie, which is a municipal corporation of a limited nature, and is also a political division of the State with a governing body exercising governmental powers, known as the board of supervisors. The county treasurer is the treasurer of the county, both in its capacity as a municipal corporation and in its capacity as a governmental agency. This officer does not possess the functions of the treasurer of a municipality like a city. He receives, holds and in some cases invests moneys that do 'not belong to the county and iri which the county has no interest. In what capacity were the board of supervisors and the county treasurer acting in the collection and payment of these moneys ? Were they the agents of the county as a municipality, or agencies of the county as a government exercising
*.
See Consol. Laws, chap. 60 (Laws of 1909, chap, 62), § 24.— [Rep.