Ejemplo n.º 1
0
 public bool AddCustomer(Customer aClientPerson)
 {
     Proxy.Customer customerInServiceFormat = new ConvertDataModel().ConvertToServiceCutsomer(aClientPerson);
     using (CustomerServiceReference.CustomerServiceClient customerProxy = new CustomerServiceReference.CustomerServiceClient()) {
         return(customerProxy.AddCustomer(customerInServiceFormat));
     }
 }
Ejemplo n.º 2
0
        public async Task <CustomerService.CustomerInfo> Get(Guid id)
        {
            var s = new CustomerServiceReference.CustomerServiceClient();

            return(await s.GetAsync(id));
        }
Ejemplo n.º 3
0
 public CustomerServiceReference.Customer CustomerLogin(string email, string password)
 {
     using (CustomerServiceReference.CustomerServiceClient customerProxy = new CustomerServiceReference.CustomerServiceClient()) {
         return(customerProxy.CustomerLogin(email, password));
     }
 }