public Inventory_CurrencyMaster GetCurrencyDetailsById(long Id) { try { if (Id > 0) { return(mbc.GetCurrencyDetailsById(Id)); } else { throw new Exception("Id is required and it cannot be null or empty."); } } catch (Exception ex) { throw ex; } finally { } }