public List <ShortDate> getEventDateByOrgID(int orgID) { List <ShortDate> dates = new List <ShortDate>(); var dat = dataContext.sp_GetEventDatesByOrgID(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); }