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