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