常用方法
常用方法
常用方法
常用方法
public int DeleteExistingOrder(int orderId) { int result = 0; try { var orderDetail = dataDetailAccess.GetOrderDetailListByOrderId(orderId); if (orderDetail.Count > 0) { dataDetailAccess = new OrderDetailDataAccess(); dataDetailAccess.DeleteOrderDetailByOrderId(orderId); } result = orderDataAccess.DeleteExistingOrder(orderId); } catch (Exception ex) { // } return(result); }