public Entities.shop Add(Entities.shop Shop) { long?idAux = Shop.id; Shop.id = null; RestRequest request = this.RequestForAdd("shops", Shop); Entities.shop aux = this.Execute <Entities.shop>(request); Shop.id = idAux; return(this.Get((long)aux.id)); }
public Entities.shop Add(Entities.shop Shop) { long?idAux = Shop.id; Shop.id = null; List <PrestaSharp.Entities.PrestaShopEntity> Entities = new List <PrestaSharp.Entities.PrestaShopEntity>(); Entities.Add(Shop); RestRequest request = this.RequestForAdd("shops", Entities); Entities.shop aux = this.Execute <Entities.shop>(request); Shop.id = idAux; return(this.Get((long)aux.id)); }
public void Delete(Entities.shop Shop) { this.Delete((long)Shop.id); }
public void Update(Entities.shop Shop) { RestRequest request = this.RequestForUpdate("shops", Shop.id, Shop); this.Execute <Entities.shop>(request); }