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)); }
public void Delete(Entities.product_feature_value ProductFeature) { this.Delete((long)ProductFeature.id); }
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); }