private async Task <bool> EmailUnico(Usuario usuario, string email, CancellationToken token) { return(!await _UsuarioRepository.AnyAsync(x => x.Email == email && x.Id != usuario.Id)); }
public async Task <bool> Existe(Guid id) { return(await _usuarioRepository.AnyAsync(x => x.Id == id)); }