예제 #1
0
        /************************ MS SQL Server Section *******************************/
        public ActionResult MSSQLCourses()
        {
            List <StudentCourse> studentCourses = new List <StudentCourse>();

            studentCourses = MSSQLMethods.getCourses();
            return(View(studentCourses));
        }
예제 #2
0
        public ActionResult MSSQLEdit(int id)
        {
            StudentCourse studentCourse = new StudentCourse();

            studentCourse = MSSQLMethods.getCourse(id);
            return(View(studentCourse));
        }
예제 #3
0
        public ActionResult MSSQLEdit(StudentCourse course)
        {
            StudentCourse studentCourse = new StudentCourse();

            if (ModelState.IsValid)
            {
                //studentCourse = MSSQLMethods.updateCourse(course);
                studentCourse = MSSQLMethods.updateCourseSQL(course);
            }
            return(View("MSSQLDetails", studentCourse));
        }