public bool Exist(string username, string openId) { bool r = false; MembershipUser user = Membership.GetUser(username); if (user != null) { string _openId = AccountProfile.GetByUsername(username).OpenId; //r = _openId == openId; r = true; } return(r); }
public void Create(string username, string openId) { MembershipUser user = Membership.CreateUser(username, "Oams123!@#"); AccountProfile.GetByUsername(username).OpenId = openId; }