public async Task <bool> Handle(ValidarUsuarioEhResponsavelDeAlunoQuery request, CancellationToken cancellationToken) { var alunosDoResponsavel = await autenticaacoRepositorio.SelecionarAlunosResponsavel(request.Cpf); if (alunosDoResponsavel == null || !alunosDoResponsavel.Any()) { return(false); } return(true); }
public async Task <IEnumerable <RetornoUsuarioEol> > SelecionarAlunosResponsavel(string cpf) { return(await _autenticaacoRepositorio.SelecionarAlunosResponsavel(cpf)); }