示例#1
0
 public static bool orderExists(string id)
 {
     if (Regex.IsMatch(id, @"^\d{1,}$"))
     {
         if (XmlWorks.getOrderNodeById(id) != null)
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public static bool customerExists(string id)
 {
     if (Regex.IsMatch(id, @"\d{1,}"))
     {
         if (XmlWorks.getCustomerNodeById(id) != null)
         {
             return(true);
         }
     }
     return(false);
 }