示例#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));
        }
示例#2
0
 public void Delete(Entities.warehouse_product_location WarehouseProductLocation)
 {
     this.Delete((long)WarehouseProductLocation.id);
 }
示例#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);
        }