Ejemplo n.º 1
0
        //Hien thi cac mon ma student do da hoc
        public ActionResult CourseList()
        {
            string  Username          = this.HttpContext.User.Identity.Name;
            User    User              = AccBO.GetUserByUsername(Username);
            Student AuthorizedStudent = StuBO.GetStudentByUserID(User.UserID);


            StudentViewModel Model = new StudentViewModel();

            //Lay toan bo danh sach rollCall in ra
            Model.AuthorizedStudent = AuthorizedStudent;
            Model.LearnedRollCalls  = RollBO.GetStudentLearnedCourses(AuthorizedStudent.StudentID);
            Model.LearningRollCalls = RollBO.GetStudentLearningCourse(AuthorizedStudent.StudentID);

            return(View(Model));
        }