예제 #1
0
        // check if user exists in database
        public static bool UserExists(string userName)
        {
            var q = new QueryUserRecord(userName);
            var d = q.Execute();

            return(d != null);
        }
예제 #2
0
 // return original username
 public static string OriginalUsername(string userName)
 {
     if (!String.IsNullOrEmpty(userName))
     {
         var q = new QueryUserRecord(userName);
         var d = q.Execute();
         return(d != null ? d.UserName : null);
     }
     return(null);
 }