예제 #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));
     }
 }
예제 #2
0
        public async Task <CustomerService.CustomerInfo> Get(Guid id)
        {
            var s = new CustomerServiceReference.CustomerServiceClient();

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