public async Task SendShirtToCustomerAsync(Customer customer, string colorCode) { using (var client = new SendShirtServiceReference.SendShirtServiceClient()) { await client.SendShirtToCustomerAsync(customer.Id, $"{customer.FirstName} {customer.LastName}", colorCode); } }
public void SendShirtToCustomer(Customer customer, string colorCode) { using (var client = new SendShirtServiceReference.SendShirtServiceClient()) { client.SendShirtToCustomer(customer.Id, $"{customer.FirstName} {customer.LastName}", colorCode); } }