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