// // GET: /StudentHome/ public ActionResult Index() { User u = (User)Session["user"]; List <Course> list = StudentCourseDAL.getAllStudentCourses(u.UserId); return(View("index", list)); }
public ActionResult insertStudentCourse(string courseId) { User u = (User)Session["user"]; StudentCourseDAL.insert(u.UserId, courseId); List <Course> list = StudentCourseDAL.getAllStudentCourses(u.UserId); return(View("index", list)); }