/// <summary> /// Description : Get Country Details from database. /// Created By : Sudheer /// Created Date : 30 July 2014 /// Modified By : /// Modified Date: /// </summary> /// <returns></returns> public static List<Currency> GetCurrencyDetails() { var data = new List<Currency>(); System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); log.Debug("Start: " + methodBase.Name); try { var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "SpGetCSS1CurrencyDetails"); var safe = new SafeDataReader(reader); while (reader.Read()) { var currency = new Currency(); currency.FetchPartialCurrencyContent(currency, safe); data.Add(currency); } return data; } catch (Exception ex) { log.Error("Error: " + ex); return data; } finally { log.Debug("End: " + methodBase.Name); } }