public Mutation(IQuestionarioService service) { Field <ProvaType>( Prova, arguments: new QueryArguments( new QueryArgument <ProvaInputType> { Name = Input } ), resolve: context => { var prova = context.GetArgument <Prova>(Input); return(service.Save(prova)); }); }
public Task <Prova> Post([FromBody] Prova prova) { return(_service.Save(prova)); }