예제 #1
0
        public DeleteCustomerResponse DeleteCustomer(DeleteCustomerRequest request)
        {
            DeleteCustomerResponse response = new DeleteCustomerResponse();
            CustomerBusinessComponent bc = DependencyInjectionHelper.GetCustomerBusinessComponent();

            bc.DeleteCustomer(request.CustomerId);

            return response;
        }
예제 #2
0
 public void DeleteCustomer(int customerId)
 {
     try
     {
         DeleteCustomerRequest request = new DeleteCustomerRequest();
         request.CustomerId = customerId;
         DeleteCustomerResponse response = Service.DeleteCustomer(request);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "PL Policy")) throw;
     }
 }