public long SaveOrUpdatePurchaseOrderInvoiceItems(Inventory_PurchaseOrderInvoiceItem podInvoiceitems)
 {
     try
     {
         InventoryManagementBC inventoryBC = new InventoryManagementBC();
         return(inventoryBC.SaveOrUpdatePurchaseOrderInvoiceItems(podInvoiceitems));
     }
     catch (Exception)
     {
         throw;
     }
 }
 public long SaveOrUpdatePurchaseOrderInvoiceItems(Inventory_PurchaseOrderInvoiceItem podInvoiceitems)
 {
     try
     {
         if (podInvoiceitems != null)
         {
             PSF.SaveOrUpdate <Inventory_PurchaseOrderInvoiceItem>(podInvoiceitems);
         }
         else
         {
             throw new Exception("PO is required and it cannot be null..");
         }
         return(podInvoiceitems.PurchOrderId);
     }
     catch (Exception)
     {
         throw;
     }
 }