public CustomerCustomerDemoProxyStub CustomerCustomerDemo_GetByPrimaryKey(System.String customerID, System.String customerTypeID) { CustomerCustomerDemo obj = new CustomerCustomerDemo(); if (obj.LoadByPrimaryKey(customerID, customerTypeID)) { return obj; } return null; }
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerCustomerDemo_LoadByPrimaryKey(System.String customerID, System.String customerTypeID) { jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>(); try { CustomerCustomerDemo entity = new CustomerCustomerDemo(); if (entity.LoadByPrimaryKey(customerID, customerTypeID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }