Exemplo n.º 1
0
 public async Task <bool> Existe(Guid id)
 {
     return(await _alunoRepository.AnyAsync(x => x.Id == id));
 }
Exemplo n.º 2
0
 private async Task <bool> AlunoNaoCadastradoAinda(Guid id, CancellationToken token)
 {
     return(!await _AlunoRepository.AnyAsync(x => x.Id == id));
 }