public List <RequiredEventMeeting> getMeetingSignedUPForDate(int reqID, int orgID, string Date) { List <RequiredEventMeeting> meetings = new List <RequiredEventMeeting>(); var meet = dataContext.sp_GetMeetingForOrgSignedUPForDate(reqID, orgID, Date); foreach (var x in meet) { RequiredEventMeeting meeting = new RequiredEventMeeting(); meeting.RequiredEventID = x.RequiredEventID; meeting.Session = x.Session; meeting.Year = x.Year; meeting.MeetingBuilding = x.MeetingBuilding; meeting.MeetingDate = x.MeetingDate; meeting.MeetingID = x.MeetingID; meeting.MeetingRoomNumber = x.MeetingRoomNumber; meeting.MeetingTime = x.MeetingTime; meetings.Add(meeting); } return(meetings); }