internal void Delete(PaymentRuleEntity paymentRule) { paymentRule.Deleted = true; SupplierEntity s = (SupplierEntity)paymentRule.Supplier; s.RemovePaymentRule(paymentRule); Update(paymentRule); }
public void DeletePaymentRule(IPaymentRule paymentRuleEntity) { PaymentRuleEntity paymentRule = (PaymentRuleEntity)paymentRuleEntity; paymentRule.Deleted = true; SupplierEntity supplier = (SupplierEntity)(paymentRule.Supplier); supplier.RemovePaymentRule(paymentRule); }