public Entities.product_option_value Add(Entities.product_option_value ProductOptionValue)
        {
            long?idAux = ProductOptionValue.id;

            ProductOptionValue.id = null;
            RestRequest request = this.RequestForAdd("product_option_values", ProductOptionValue);

            Entities.product_option_value aux = this.Execute <Entities.product_option_value>(request);
            ProductOptionValue.id = idAux;
            return(this.Get((long)aux.id));
        }
Пример #2
0
        public Entities.product_option_value Add(Entities.product_option_value ProductOptionValue)
        {
            long?idAux = ProductOptionValue.id;

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

            Entities.Add(ProductOptionValue);
            RestRequest request = this.RequestForAdd("product_option_values", Entities);

            Entities.product_option_value aux = this.Execute <Entities.product_option_value>(request);
            ProductOptionValue.id = idAux;
            return(this.Get((long)aux.id));
        }
 public void Delete(Entities.product_option_value ProductOptionValue)
 {
     this.Delete((long)ProductOptionValue.id);
 }
        public void Update(Entities.product_option_value ProductOptionValue)
        {
            RestRequest request = this.RequestForUpdate("product_option_values", ProductOptionValue.id, ProductOptionValue);

            this.Execute <Entities.product_option_value>(request);
        }