public bool AddCustomer(clientRef.Customer customerToAdd)
        {
            bool allOk = false;

            proxyRef.Customer customerInServiceFormat = new ConvertDataCustomer().ConvertToServiceCustomer(customerToAdd);
            using (proxyRef.CustomerServiceClient customerProxy = new proxyRef.CustomerServiceClient()) {
                allOk = customerProxy.AddCustomer(customerInServiceFormat);
            }
            return(allOk);
        }
 public clientRef.Customer GetCustomerByEmail(string emailToFind)
 {
     clientRef.Customer clientCustomer = null;
     proxyRef.Customer  aProxyCustomer = null;
     using (proxyRef.CustomerServiceClient customerProxy = new proxyRef.CustomerServiceClient()) {
         aProxyCustomer = customerProxy.GetCustomerByEmail(emailToFind);
     }
     if (aProxyCustomer != null)
     {
         clientCustomer = new ConvertDataCustomer().ConvertFromServiceCustomer(aProxyCustomer);
     }
     return(clientCustomer);
 }