//public static bool AddAuthor(ATTAuthor obj, Previlege pobj) //{ // try // { // return DLLAuthor.AddAuthor(obj, pobj); // } // catch (Exception ex) // { // throw ex; // } //} //public static bool EditCurrency(ATTCurrency obj, string username, string menuname) public static bool EditCurrency(ATTCurrency obj, Previlege pobj) { try { return(DLLCurrency.EditCurrency(obj, pobj)); } catch (Exception ex) { throw ex; } }
public static List <ATTCurrency> GetCurrencyList(int?currencyID) { List <ATTCurrency> lstCurrency = new List <ATTCurrency>(); try { foreach (DataRow row in DLLCurrency.GetCurrencyTable(currencyID).Rows) { ATTCurrency obj = new ATTCurrency ( int.Parse(row["Currency_ID"].ToString()), row["Currency_Name"].ToString() ); lstCurrency.Add(obj); } return(lstCurrency); } catch (Exception ex) { throw ex; } }