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