Ejemplo n.º 1
0
        public void Apply(Product product, BegemotProduct bproduct)
        {
            var needAdd = !product.SpecialStyle.Any(s => s.Id == Id);
            if (needAdd)
            {
                product.SpecialStyle.Add(this);
            }

            product.ReApplyStyle();
        }
Ejemplo n.º 2
0
        public void Apply(Product product, BegemotProduct bproduct, BegemotSalePrice bsale)
        {
            var needAdd = !product.Sales.Any(s => s.Id == Id);
            if (needAdd)
            {
                product.Sales.Add(this);
            }

            product.RecalcPrice(bproduct, bsale);

            if (Style != null)
            {
                product.ReApplyStyle();
            }
        }