public List <AppContact> GetEmployees(string companyid, string creatorid) { ApplicationService.contact[] ServiceEmployees = appclient.GetEmployees(companyid, creatorid, "", ""); List <ApplicationService.contact> serviceemployeecollection = ServiceEmployees.ToList(); List <AppContact> employees = AppContact.ConvertServiceContactsToAppContacts(serviceemployeecollection); return(employees); }
public List <AppContact> GetContacts(string companyid, string objectid) { ApplicationService.contact[] servicecontacts = appclient.GetContacts(objectid, companyid, "1", "100"); return(AppContact.ConvertServiceContactsToAppContacts(servicecontacts.ToList())); }