private string GenerateEmailCode() { var code = GenerateCode.EmailCode(); var user = _userRepository.FindUserByVerifyCode(code); if (user == null) { return(code); } return(GenerateEmailCode()); }
private string GenerateEmailCode() { var code = GenerateCode.EmailCode(); var user = _userRepository.FindUserByVerifyCode(code); if (user == null) { return(code); } return(GenerateEmailCode()); }