Beispiel #1
0
        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);
        }
Beispiel #2
0
 public abstract bool deleteChildren(DiscountPolicy discountPolicy, MarketDbContext context);
Beispiel #3
0
 public override bool deleteChildren(DiscountPolicy discountPolicy, MarketDbContext context)
 {
     return(true);
 }