public List <Meeting> Get(int?codeMember = null, string subject = null, DateTime?MeetingDate = null) { MeetingsCriteria criteria = new MeetingsCriteria() { codeMember = codeMember, MeetingDate = MeetingDate, Subject = subject }; return(_meetingBL.Get(criteria)); }
public List <Meeting> Get(MeetingsCriteria criteria) { var res = DB.MeetingsSearch(criteria.codeMember, criteria.Subject, criteria.MeetingDate).ToList(); List <Meeting> resu = res.Select(m => new Meeting() { CodeMeeting = m.CodeMeeting, CodeTypeMeeting = m.CodeTypeMeeting, DateCreated = m.DateCreated, MeetingDate = m.MeetingDate, MeetingDirector = m.MeetingDirector, SubjectMeeting = m.SubjectMeeting, // NumOfMembers = m.NumOfMembers, // TypeOfMeeting = m.TypeOfMeeting }).ToList(); return(resu); }
public List <Meeting> Get(MeetingsCriteria criteria) { criteria = (criteria == null ? new MeetingsCriteria() : criteria); return(_meetingsDAL.Get(criteria)); }