public async Task <IActionResult> ObterProfessoresGoogle([FromServices] IObterProfessoresGoogleUseCase useCase, [FromQuery] FiltroObterProfessoresCadastradosDto filtro) { var retorno = await useCase.Executar(filtro); return(Ok(retorno)); }
public async Task <PaginacaoResultadoDto <ProfessorGoogle> > Executar(FiltroObterProfessoresCadastradosDto filtro) { var paginacao = new Paginacao(filtro.PaginaNumero, filtro.RegistrosQuantidade); return(await mediator.Send(new ObterProfessoresGoogleQuery(paginacao, filtro.Rf, filtro.Email))); }