/************************ MS SQL Server Section *******************************/ public ActionResult MSSQLCourses() { List <StudentCourse> studentCourses = new List <StudentCourse>(); studentCourses = MSSQLMethods.getCourses(); return(View(studentCourses)); }
public ActionResult MSSQLEdit(int id) { StudentCourse studentCourse = new StudentCourse(); studentCourse = MSSQLMethods.getCourse(id); return(View(studentCourse)); }
public ActionResult MSSQLEdit(StudentCourse course) { StudentCourse studentCourse = new StudentCourse(); if (ModelState.IsValid) { //studentCourse = MSSQLMethods.updateCourse(course); studentCourse = MSSQLMethods.updateCourseSQL(course); } return(View("MSSQLDetails", studentCourse)); }