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