Пример #1
0
        public Entities.product_feature Add(Entities.product_feature ProductFeature)
        {
            long?idAux = ProductFeature.id;

            ProductFeature.id = null;
            RestRequest request = this.RequestForAdd("product_features", ProductFeature);

            Entities.product_feature aux = this.Execute <Entities.product_feature>(request);
            ProductFeature.id = idAux;
            return(this.Get((long)aux.id));
        }
        public Entities.product_feature Add(Entities.product_feature ProductFeature)
        {
            long?idAux = ProductFeature.id;

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

            Entities.Add(ProductFeature);
            RestRequest request = this.RequestForAdd("product_features", Entities);

            Entities.product_feature aux = this.Execute <Entities.product_feature>(request);
            ProductFeature.id = idAux;
            return(this.Get((long)aux.id));
        }
Пример #3
0
 public void Delete(Entities.product_feature ProductFeature)
 {
     this.Delete((long)ProductFeature.id);
 }
Пример #4
0
        public void Update(Entities.product_feature ProductFeature)
        {
            RestRequest request = this.RequestForUpdate("product_features", ProductFeature.id, ProductFeature);

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