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