예제 #1
0
        /// <summary>
        /// Gets the customers.
        /// </summary>
        /// <returns></returns>
        public async Task <IEnumerable <Customer> > GetAllCustomers()
        {
            var service = DemoProxy.CustomerService();
            var result  = await service.GetAllCustomers();

            return(result);
        }
예제 #2
0
        public async Task <int> CustomerCount()
        {
            var service = DemoProxy.CustomerService();
            var result  = await service.CustomerCount();

            return(result);
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
 public async Task RemoveCustomer(int customerId)
 {
     var service = DemoProxy.CustomerService();
     await service.RemoveCustomer(customerId);
 }
예제 #5
0
 public async Task AddCustomer(Customer customer)
 {
     var service = DemoProxy.CustomerService();
     await service.AddCustomer(customer);
 }