public SessionVm GetSessionVm(int pageNumber, int sessionType, int sessionId, string searchKeyword, User currentUser) { SessionVm objSessionVm = GetSessions(pageNumber, sessionType, sessionId, searchKeyword, currentUser); objSessionVm.AllAttendees = UserConverter.ConvertListFromCore(UnitOfWork.UserRepository.GetAllTrainees(currentUser.TeamId ?? 0, true)) .OrderBy(x => x.FirstName) .ToList(); return(objSessionVm); }
public SessionVm GetSessionOnFilter(int pageSize, int sessionType, string searchKeyword) { SessionVm objSessionVm = new SessionVm { SessionList = SessionDataAccesor.GetSessionOnFilter(pageSize, sessionType, searchKeyword), AllAttendees = UserDataAccesor.GetAllUsers() }; return(objSessionVm); }
public SessionVm GetSessions(int pageNumber, int sessionType, int sessionId, string searchKeyword, User currentUser) { SessionVm objSessionVm = new SessionVm { SessionList = GetPagedFilteredSessions(searchKeyword, sessionType, sessionId, currentUser.TeamId ?? 0, pageNumber, 5), }; if (objSessionVm.SessionList.Results != null && objSessionVm.SessionList.Results.Count > 0) { objSessionVm.DefaultSession = GetSessionWithAttendees(objSessionVm.SessionList.Results[0].Id); } return(objSessionVm); }