Beispiel #1
0
        public Entities.warehouse_product_location Add(Entities.warehouse_product_location WarehouseProductLocation)
        {
            long?idAux = WarehouseProductLocation.id; WarehouseProductLocation.id = null;
            List <PrestaSharp.Entities.PrestaShopEntity> Entities = new List <PrestaSharp.Entities.PrestaShopEntity>();

            Entities.Add(WarehouseProductLocation); RestRequest request = this.RequestForAdd("warehouse_product_locations", Entities);
            Entities.warehouse_product_location aux = this.Execute <Entities.warehouse_product_location>(request);
            WarehouseProductLocation.id = idAux;
            return(this.Get((long)aux.id));
        }
Beispiel #2
0
 public void Delete(Entities.warehouse_product_location WarehouseProductLocation)
 {
     this.Delete((long)WarehouseProductLocation.id);
 }
Beispiel #3
0
        public void Update(Entities.warehouse_product_location WarehouseProductLocation)
        {
            RestRequest request = this.RequestForUpdate("warehouse_product_locations", WarehouseProductLocation.id, WarehouseProductLocation);

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