public bool Exists(string identity, string @namespace = null) { if (string.IsNullOrWhiteSpace(identity)) { return(false); } return(this.DataAccess.Exists <TUser>(MembershipUtility.GetIdentityCondition(identity) & this.GetNamespace(@namespace))); }
public TUser GetUser(string identity, string @namespace = null) { EnsureRoles(); return(this.DataAccess.Select <TUser>(MembershipUtility.GetIdentityCondition(identity) & this.GetNamespace(@namespace)).FirstOrDefault()); }