private List <aspnet_WebEvent_Get_Result> GetEvent(string eventId) { List <aspnet_WebEvent_Get_Result> retVals = new List <aspnet_WebEvent_Get_Result>(); using (healthychefEntities hccEnt = new healthychefEntities()) { var t = hccEnt.aspnet_WebEvent_Get(eventId); foreach (aspnet_WebEvent_Get_Result ret in t) { retVals.Add(ret); } } return(retVals.OrderByDescending(a => a.EventTime).ToList()); }