/// <summary> /// Description : Get Country Details from database. /// Created By : Pavan /// Created Date : 22 July 2014 /// Modified By : /// Modified Date: /// </summary> /// <returns></returns> public static List<Country> GetCountryDetails() { var data = new List<Country>(); 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, "[SpGetCSS1CountryDetails]"); var safe = new SafeDataReader(reader); while (reader.Read()) { var country = new Country(); country.FetchPartialContent(country, safe); data.Add(country); } return data; } catch (Exception ex) { log.Error("Error: " + ex); return data; } finally { log.Debug("End: " + methodBase.Name); } }