Beispiel #1
0
 private async Task <bool> NomeProjetoNaoExiste(Projeto projeto, string tema, CancellationToken token)
 {
     return(!await _ProjetoRepository.AnyAsync(x => x.Tema == tema && x.Id != projeto.Id));
 }
Beispiel #2
0
 public async Task <bool> Existe(Guid id)
 {
     return(await _projetoRepository.AnyAsync(x => x.Id == id));
 }