public static ModeloCanonico.Custumer obterClienteYUM(string cpf) { ServiceReferenceYUM.YUMServiceSoapClient client = new ServiceReferenceYUM.YUMServiceSoapClient(); ServiceReferenceYUM.Custumer custumer = client.GetCustomerByCPF(cpf); if (custumer != null) { return converterObjetoCustomerYUM(custumer); } else { return null; } }
public static void atualizarClienteYUM(ModeloCanonico.Custumer customer) { ServiceReferenceYUM.YUMServiceSoapClient client = new ServiceReferenceYUM.YUMServiceSoapClient(); client.UpdateCustomer(criarObjetoCustomerYUM(customer)); }