Esempio n. 1
0
        private static void RowValuesToConditions(RowValues values, BulkCampaignProductScope c)
        {
            var product = (ProductScope)c.BiddableCampaignCriterion.Criterion;

            product.Conditions = new List <ProductCondition>();

            ProductConditionHelper.AddConditionsFromRowValues(values, product.Conditions);
        }
Esempio n. 2
0
        private static void ConditionsToRowValues(BulkCampaignProductScope c, RowValues values)
        {
            if (c.BiddableCampaignCriterion.Criterion == null)
            {
                return;
            }

            var product = (ProductScope)c.BiddableCampaignCriterion.Criterion;

            if (product.Conditions == null)
            {
                return;
            }

            ProductConditionHelper.AddRowValuesFromConditions(product.Conditions, values);
        }