public async Task <IActionResult> ObterProfessoresParaIncluirGoogle([FromServices] IObterProfessoresParaIncluirGoogleUseCase useCase, [FromQuery] FiltroObterProfessoresIncluirGoogleDto filtro) { var retorno = await useCase.Executar(filtro); return(Ok(retorno)); }
public async Task <PaginacaoResultadoDto <ProfessorEol> > Executar(FiltroObterProfessoresIncluirGoogleDto filtro) { var paginacao = new Paginacao(filtro.PaginaNumero, filtro.RegistrosQuantidade); var parametrosCargaInicialDto = await mediator.Send(new ObterParametrosCargaIncialPorAnoQuery(DateTime.Today.Year)); return(await mediator.Send(new ObterProfessoresParaIncluirGoogleQuery(filtro.UltimaExecucao, paginacao, filtro.Rf, parametrosCargaInicialDto))); }