public static AppCustomer ConvertServiceCustomerToAppCustomer(ApplicationService.customer serviceCustomer) { AppCustomer tempcustomer = new AppCustomer(); tempcustomer.id = serviceCustomer.customerid; tempcustomer.name = serviceCustomer.name; tempcustomer.email = serviceCustomer.email; tempcustomer.companyid = serviceCustomer.companyid; tempcustomer.status = serviceCustomer.status; tempcustomer.data = serviceCustomer.data; tempcustomer.objectid = serviceCustomer.objectid; tempcustomer.createdby = serviceCustomer.createdby; tempcustomer.createdon = serviceCustomer.createddate; tempcustomer.modifiedby = serviceCustomer.modifiedby; tempcustomer.modifiedon = serviceCustomer.modifieddate; return(tempcustomer); }
public AppCustomer GetCustomer(string customerid, string companyid, string objectid) { ApplicationService.customer customer = appclient.GetCustomer(companyid, customerid, objectid); return(AppCustomer.ConvertServiceCustomerToAppCustomer(customer)); }