public long SaveOrUpdateCurrencyMasterDetails(Inventory_CurrencyMaster currencyMaster) { try { mbc.SaveOrUpdateCurrencyMasterDetails(currencyMaster); return(currencyMaster.Currency_Id); } catch (Exception ex) { throw ex; } finally { } }
public long SaveOrUpdateCurrencyMasterDetails(Inventory_CurrencyMaster currencyMaster) { try { if (currencyMaster != null) { PSF.SaveOrUpdate <Inventory_CurrencyMaster>(currencyMaster); } else { throw new Exception("All Fields are required and it cannot be null.."); } return(currencyMaster.Currency_Id); } catch (Exception ex) { throw ex; } }
public Inventory_CurrencyMaster GetCurrencyDetailsById(long Id) { try { Inventory_CurrencyMaster currencyMstr = null; if (Id > 0) { currencyMstr = PSF.Get <Inventory_CurrencyMaster>(Id); } else { throw new Exception("Id is required and it cannot be 0"); } return(currencyMstr); } catch (Exception ex) { throw ex; } }