private static String[] getListPublicationsByContactIDTest(String[] tk) { try { List <Publication> temp = sm.getListPublicationsByContactID(int.Parse(tk[1])); Console.WriteLine("publicationID\t\texpirationDate\t\t\tnamePublication\n"); return(temp.Select(z => z.publicationID + "\t\t\t" + z.expirationDate + "\t\t" + z.namePublication).ToArray()); } catch { return(str2arr("Missing/Invalid argument.Usage: getListPublicationsByContactIDTest <contactID>")); } }