Beispiel #1
0
        public ActionResult Index(string semester_id)
        {
            CommonFunc cFunc = new CommonFunc();

            if (semester_id == null)
            {
                semester_id = cFunc.GetIdSemesterBySession();
            }
            CourseDAO     courseDao  = new CourseDAO();
            List <COURSE> listCourse = courseDao.GetCourseByTeacherAndSemester(cFunc.GetIdUserBySession(), cFunc.GetIdSemesterBySession());

            return(View(listCourse));
        }
        public ActionResult SubjectProcess(string semester_id)//string user_id = "JZDN2020112521542805", string course_id = "JZDN2020112521542821")
        {
            CommonFunc comf    = new CommonFunc();
            string     user_id = comf.GetIdUserBySession();

            if (semester_id == null)
            {
                semester_id = comf.GetIdSemesterBySession();
            }

            CourseDAO courseDao  = new CourseDAO();
            var       listCourse = courseDao.GetCourseByTeacherAndSemester(user_id, semester_id);

            return(View(listCourse));
        }
        public ActionResult Subjects(string semester_id) //= "JZDN2020112521542821")
        {
            //**************************Test*******************************************
            //User user = new User();
            //user.id = "JZDN2020112521542805";
            //user.name = "A";
            //Session.Add(CommonConstants.USER_SESSION, user);
            //******************Test**************************************************

            CommonFunc comf    = new CommonFunc();
            string     user_id = comf.GetIdUserBySession();

            if (semester_id == null)
            {
                semester_id = comf.GetIdSemesterBySession();
            }

            CourseDAO courseDAO  = new CourseDAO();
            var       listCourse = courseDAO.GetCourseByTeacherAndSemester(user_id, semester_id);

            return(View(listCourse));
        }