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