public override bool deleteChildren(DiscountPolicy discountPolicy, MarketDbContext context) { bool leftremoved = discountPolicy.DeleteDiscountRecursiveFromNotActiveDiscounts(DiscountLeftID, context); bool rightremoved = discountPolicy.DeleteDiscountRecursiveFromNotActiveDiscounts(DiscountRightID, context); bool resultDelete = leftremoved && rightremoved; if (resultDelete) { this.ChildrenDiscounts = new List <ADiscount>(); } return(leftremoved && rightremoved); }
public abstract bool deleteChildren(DiscountPolicy discountPolicy, MarketDbContext context);
public override bool deleteChildren(DiscountPolicy discountPolicy, MarketDbContext context) { return(true); }