Example #1
0
        public static List <Event> disdates()
        {
            List <Event>    dates = new List <Event>();
            bus_eleave_ugc1 bus   = new bus_eleave_ugc1();
            DataTable       dt    = bus.fetchdisdates();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                Event _holiday = new Event();
                _holiday.EventDate = dt.Rows[i]["dates"].ToString();
                dates.Add(_holiday);
            }
            return(dates);
        }