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

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