Notwithstanding the provisions of any charter heretofore granted by the state and subject to the provisions of subdivision (b) of section 506, the place of trial of all actions against counties, cities, towns, villages, school districts and district corporations or any of their officers, boards or departments shall be, for:
N.Y. C.P.L.R. Law ยง 504