示例#1
0
        public Entities.product_feature_value Add(Entities.product_feature_value ProductFeatureValue)
        {
            long?idAux = ProductFeatureValue.id;

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

            Entities.Add(ProductFeatureValue);
            RestRequest request = this.RequestForAdd("product_feature_values", Entities);

            Entities.product_feature_value aux = this.Execute <Entities.product_feature_value>(request);
            ProductFeatureValue.id = idAux;
            return(this.Get((long)aux.id));
        }
示例#2
0
 public void Delete(Entities.product_feature_value ProductFeature)
 {
     this.Delete((long)ProductFeature.id);
 }
示例#3
0
        public void Update(Entities.product_feature_value ProductFeatureValue)
        {
            RestRequest request = this.RequestForUpdate("product_feature_values", ProductFeatureValue.id, ProductFeatureValue);

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