public static List <ATTFixedHoliday> GetFixedHolidays() { List <ATTFixedHoliday> LSTFxHolidays = new List <ATTFixedHoliday>(); try { foreach (DataRow row in DLLFixedHoliday.GetFixedHolidays().Rows) { ATTFixedHoliday obj = new ATTFixedHoliday(); obj.FromMonth = row["FROM_MONTH"].ToString(); obj.ToMonth = row["TO_MONTH"].ToString(); obj.FromDay = row["FROM_DAY"].ToString(); obj.ToDay = row["TO_DAY"].ToString(); obj.DateType = row["DATE_TYPE"].ToString(); obj.HolidayDescription = row["HOLIDAY_DESC"].ToString(); obj.Action = ""; LSTFxHolidays.Add(obj); } return(LSTFxHolidays); } catch (Exception ex) { throw ex; } }