Example #1
0
 public async Task <bool> Existe(Guid id)
 {
     return(await _disciplinaRepository.AnyAsync(x => x.Id == id));
 }
Example #2
0
 private async Task <bool> DisciplinaNomeUnico(string nome, CancellationToken token)
 {
     return(!await _disciplinaRepository.AnyAsync(x => x.Nome == nome));
 }