Esempio n. 1
0
        public Entities.tax_rule_group Add(Entities.tax_rule_group TaxRuleGroup)
        {
            long?idAux = TaxRuleGroup.id;

            TaxRuleGroup.id = null;
            List <PrestaSharp.Entities.PrestaShopEntity> Entities = new List <PrestaSharp.Entities.PrestaShopEntity>();

            Entities.Add(TaxRuleGroup);
            RestRequest request = this.RequestForAdd("tax_rule_groups", Entities);

            Entities.tax_rule_group aux = this.Execute <Entities.tax_rule_group>(request);
            TaxRuleGroup.id = idAux;
            return(this.Get((long)aux.id));
        }