示例#1
0
        public DeleteOrderResponse DeleteOrder(DeleteOrderRequest request)
        {
            DeleteOrderResponse response = new DeleteOrderResponse();
            OrderBusinessComponent bc = DependencyInjectionHelper.GetOrderBusinessComponent();

            bc.DeleteOrder(request.Id);

            return response;
        }
示例#2
0
 public void DeleteOrder(int orderId)
 {
     try
     {
         DeleteOrderRequest request = new DeleteOrderRequest();
         request.Id = orderId;
         DeleteOrderResponse response = Service.DeleteOrder(request);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "PL Policy")) throw;
     }
 }