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