public bool AddCustomer(Customer aClientPerson) { Proxy.Customer customerInServiceFormat = new ConvertDataModel().ConvertToServiceCutsomer(aClientPerson); using (CustomerServiceReference.CustomerServiceClient customerProxy = new CustomerServiceReference.CustomerServiceClient()) { return(customerProxy.AddCustomer(customerInServiceFormat)); } }
public async Task <CustomerService.CustomerInfo> Get(Guid id) { var s = new CustomerServiceReference.CustomerServiceClient(); return(await s.GetAsync(id)); }
public CustomerServiceReference.Customer CustomerLogin(string email, string password) { using (CustomerServiceReference.CustomerServiceClient customerProxy = new CustomerServiceReference.CustomerServiceClient()) { return(customerProxy.CustomerLogin(email, password)); } }