public long SaveOrUpdateInventory_PurchaseOrderItem(Inventory_PurchaseOrderItem poOrditems) { try { InventoryManagementBC inventoryBC = new InventoryManagementBC(); return(inventoryBC.SaveOrUpdatePurchaseOrderItems(poOrditems)); } catch (Exception) { throw; } }
public long SaveOrUpdatePurchaseOrderItems(Inventory_PurchaseOrderItem poOrditems) { try { if (poOrditems != null) { PSF.SaveOrUpdate <Inventory_PurchaseOrderItem>(poOrditems); } else { throw new Exception("PO is required and it cannot be null.."); } return(poOrditems.POLineId); } catch (Exception) { throw; } }