예제 #1
0
        public dynamic Update(T entity)
        {
            InventoryService.Customer customer = AutoMap.ConvertTo <InventoryService.Customer, Models.Customer>(entity as Models.Customer);
            var response = client.UpdateCustomerAsync(customer.Id, customer);

            return(response.Result);
        }
예제 #2
0
 public System.Threading.Tasks.Task <string> UpdateCustomerAsync(int id, InventoryService.Customer customer)
 {
     return(base.Channel.UpdateCustomerAsync(id, customer));
 }
예제 #3
0
 public System.Threading.Tasks.Task <string> AddCustomerAsync(InventoryService.Customer customer)
 {
     return(base.Channel.AddCustomerAsync(customer));
 }