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