Example #1
0
        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)));
        }
Example #2
0
 public TUser GetUser(string identity, string @namespace = null)
 {
     EnsureRoles();
     return(this.DataAccess.Select <TUser>(MembershipUtility.GetIdentityCondition(identity) & this.GetNamespace(@namespace)).FirstOrDefault());
 }