public static bool EditOrderRule(OrderRuleDetailModel request, string Operator) { if (request.RuleNo == 0) { return(DalTask.AddOrderRule(request, Operator)); } else { return(DalTask.UpdateOrderRuleInfo(request)); } }