예제 #1
0
        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));
        }
예제 #2
0
 public void Delete(Entities.order_detail OrderDetail)
 {
     this.Delete((long)OrderDetail.id);
 }
예제 #3
0
        public void Update(Entities.order_detail OrderDetail)
        {
            RestRequest request = this.RequestForUpdate("order_details", OrderDetail.id, OrderDetail);

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