public long SaveOrUpdatePurchaseOrderInvocie(Inventory_PurchaseOrderInvoice purchaseOrderInvoice)
 {
     try
     {
         InventoryManagementBC inventoryBC = new InventoryManagementBC();
         return(inventoryBC.SaveOrUpdatePurchaseOrderInvocie(purchaseOrderInvoice));
     }
     catch (Exception)
     {
         throw;
     }
 }
 public long SaveOrUpdatePurchaseOrderInvocie(Inventory_PurchaseOrderInvoice purchaseOrderInvoice)
 {
     try
     {
         if (purchaseOrderInvoice != null)
         {
             PSF.SaveOrUpdate <Inventory_PurchaseOrderInvoice>(purchaseOrderInvoice);
         }
         else
         {
             throw new Exception("Purchase order is required and it cannot be null..");
         }
         return(purchaseOrderInvoice.POInvoiceId);
     }
     catch (Exception)
     {
         throw;
     }
 }