public override MembershipUser GetUser(object providerUserKey, bool userIsOnline) { var user = new SecurityRepository().GetAccount((int)providerUserKey); if (userIsOnline) user.UpdateLastActivity(); return user; }
public override MembershipUser GetUser(string username, bool userIsOnline) { var user = new SecurityRepository().GetAccount(username); if (userIsOnline) user.UpdateLastActivity(); return user; }