Example #1
0
        //TODO Add CourseID as a parameter
        public ActionResult Roster()
        {
            var currentUser = IdentityHelper.GetLmsUserForCurrentUser(this);
            var roster = _lmsRosterManager.GetRosterStudents(currentUser.UserID, 2);

            RosterViewModel model = new RosterViewModel();
            model.CourseRoster = roster.Data;
            model.CreateGradeLevel(_lmsGradeLevelManager.GradeLevelGetAll());

            return View(model);
        }
Example #2
0
        public ActionResult Roster(RosterStudent student)
        {
            student.CourseID = 2;
            var studentSearch = _lmsRosterManager.RosterUserSearch(student);
            var currentUser = IdentityHelper.GetLmsUserForCurrentUser(this);
            var roster = _lmsRosterManager.GetRosterStudents(currentUser.UserID, 2);

            RosterViewModel model = new RosterViewModel();

            model.CreateGradeLevel(_lmsGradeLevelManager.GradeLevelGetAll());
            model.StudentSearchResults = studentSearch.Data;
            model.CourseRoster = roster.Data;

            return View(model);
        }
Example #3
0
        public ActionResult Search()
        {
            RosterViewModel model = new RosterViewModel();

            model.CreateGradeLevel(_lmsGradeLevelManager.GradeLevelGetAll());

            return View(model);
        }