示例#1
0
        public List <ShortDate> getIncidentDateByOrgID(int orgID)
        {
            List <ShortDate> dates = new List <ShortDate>();
            var dat = dataContext.sp_GetIncidentDatesByOrgID(orgID);

            foreach (var x in dat)
            {
                ShortDate date = new ShortDate();
                date.Date  = Convert.ToDateTime(x.Date);
                date.SDate = Convert.ToDateTime(x.Date).ToShortDateString();
                dates.Add(date);
            }
            return(dates);
        }