/// <summary> /// Gets the customers. /// </summary> /// <returns></returns> public async Task <IEnumerable <Customer> > GetAllCustomers() { var service = DemoProxy.CustomerService(); var result = await service.GetAllCustomers(); return(result); }
public async Task <int> CustomerCount() { var service = DemoProxy.CustomerService(); var result = await service.CustomerCount(); return(result); }
/// <summary> /// Gets the customer. /// </summary> /// <param name="id">The identifier.</param> /// <returns></returns> public async Task <Customer> GetCustomer(int id) { var service = DemoProxy.CustomerService(); var result = await service.GetCustomer(id); return(result); }
public async Task RemoveCustomer(int customerId) { var service = DemoProxy.CustomerService(); await service.RemoveCustomer(customerId); }
public async Task AddCustomer(Customer customer) { var service = DemoProxy.CustomerService(); await service.AddCustomer(customer); }