예제 #1
0
 private static String[] getContactsByUserIDTest(String[] tk)
 {
     try
     {
         List <Contact> contactList = sm.getContactsByUserID(int.Parse(tk[1]));
         Console.WriteLine("contactID\texternalUserID\t\t\t\tnameContact\n");
         return(contactList.Select(c => c.contactID + "\t\t" + c.externalUserID + "\t\t\t\t" + c.nameContact).ToArray());
     }
     catch
     {
         return(str2arr("Missing/Invalid argument.Usage: getContactsByUserIDTest <User ID>"));
     }
 }