public AppContact GetEmployeeInformation(string employeeid, string companyid, string creatorid, string objectype) { AppContact employeeContact = new AppContact(); ApplicationService.contact con = appclient.GetEmployee(employeeid, companyid, creatorid); employeeContact = AppContact.ConvertServiceContactToAppContact(con); return(employeeContact); }
public AppContact GetContact(string contactid, string companyid, string objectid) { ApplicationService.contact servicecontact = new ApplicationService.contact(); AppContact returncontact = new AppContact(); try { servicecontact = appclient.GetContact(contactid, objectid, companyid); returncontact = AppContact.ConvertServiceContactToAppContact(servicecontact); } catch { } return(returncontact); }
public static AppContact ConvertServiceContactToAppContact(ApplicationService.contact servicecontact) { AppContact tempContact = new AppContact(); tempContact.id = servicecontact.contactid; tempContact.objectid = servicecontact.objectid; tempContact.Title = servicecontact.title; tempContact.FirstName = servicecontact.firstname; tempContact.LastName = servicecontact.lastname; tempContact.email = servicecontact.emailid; tempContact.secondaryemail = servicecontact.secondaryemail; tempContact.phone = servicecontact.phone; tempContact.mobile = servicecontact.mobile; tempContact.type = servicecontact.type; tempContact.objecttype = servicecontact.objecttype; tempContact.data = servicecontact.data; tempContact.createdby = servicecontact.createdby; tempContact.createdon = servicecontact.createddate; tempContact.creatorid = servicecontact.creatorid; tempContact.modifiedby = servicecontact.modifiedby; tempContact.modifiedon = servicecontact.modifieddate; return(tempContact); }
public AppContact GetContact(string contactid, string companyid, string objectid) { ApplicationService.contact servicecontact = new ApplicationService.contact(); AppContact returncontact = new AppContact(); try { servicecontact = appclient.GetContact(contactid, objectid, companyid); returncontact = AppContact.ConvertServiceContactToAppContact(servicecontact); } catch { } return returncontact; }