コード例 #1
0
        internal void Delete(PaymentRuleEntity paymentRule)
        {
            paymentRule.Deleted = true;
            SupplierEntity s = (SupplierEntity)paymentRule.Supplier;

            s.RemovePaymentRule(paymentRule);
            Update(paymentRule);
        }
コード例 #2
0
        public void DeletePaymentRule(IPaymentRule paymentRuleEntity)
        {
            PaymentRuleEntity paymentRule = (PaymentRuleEntity)paymentRuleEntity;

            paymentRule.Deleted = true;

            SupplierEntity supplier = (SupplierEntity)(paymentRule.Supplier);

            supplier.RemovePaymentRule(paymentRule);
        }