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