예제 #1
0
 public async Task <bool> IsEmailUnique(string email)
 => await _repository.ExistsAsync(u => u.Email == email.ToLowerInvariant()) == false;
 public async Task <bool> UserTokenExists(Guid userId)
 => await _repository.ExistsAsync(t => t.UserId == userId == true);