public DeleteOrderResponse DeleteOrder(DeleteOrderRequest request) { DeleteOrderResponse response = new DeleteOrderResponse(); OrderBusinessComponent bc = DependencyInjectionHelper.GetOrderBusinessComponent(); bc.DeleteOrder(request.Id); return response; }
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; } }