§ 898-d. Enforcement. Whenever there shall be a violation of this article, the attorney general, in the name of the people of the state of New York, or a city corporation counsel on behalf of the locality, may bring an action in the supreme court or federal district court to enjoin and restrain such violations and to obtain restitution and damages.