The country’s two biggest daily fantasy sports companies filed court papers on Friday in New York, asking a judge to stop the state attorney general from shutting down their operations and rule on the legality of their businesses.

In separate complaints filed in state Supreme Court in Manhattan, FanDuel and DraftKings similarly ask a judge for an injunction, arguing that Attorney General Eric Schneiderman wrongly characterized their businesses as games of chance, rather than skill, in cease-and-desist letters earlier last week.