Beispiel #1
0
 public bool ValidateUserName(string userName)
 {
     if (userName == String.Empty)
     {
         return(false);
     }
     if (reg2.IsMatch(userName))
     {
         return(false);
     }
     if (!registerRepository.Check(userName))
     {
         return(false);
     }
     return(true);
 }