void ListProjects() { var lctrl = new LatistaController(); var projects = lctrl.ListProjects(); Display($"offset:{projects.offset}, limit:{projects.limit}, total:{projects.total}"); foreach (var p in projects.projects) { Display($"id:{p.project_id}, name:{p.name}, job number:{p.job_number}"); } }
void ListContacts() { var lctrl = new LatistaController(); var contacts = lctrl.ListContacts(); //Display($"offset:{contacts.offset}, limit:{contacts.limit}, total:{contacts.total}"); //foreach (var c in contacts.contacts) { // Display($"id:{c.user_id}, firstname:{c.first_name}, lastname:{c.last_name}, company name: {c.company_name}"); //} SqlLoader sql = new SqlLoader(); foreach (var contact in contacts.contacts) { var success = sql.LoadContact(contact); } }