Exemplo n.º 1
0
        public ActionResult RegisteCourse(StudentCours collection)
        {
            try
            {
                collection.StudentID = 1;
                student_operations.RegisterCourse(collection);

                ViewBag.CourseID = course_operations.GetAllCourses();
            }
            catch (Exception e)
            {
                return(View());
            }
            // need to be assigned from session for logged in student


            return(RedirectToAction("Index"));
        }
 public ActionResult SelectCourse()
 {
     ViewBag.CourseList = course_operations.GetAllCourses();
     return(View());
 }
Exemplo n.º 3
0
        // GET: course
        public ActionResult Index()
        {
            List <Course> list = operation.GetAllCourses();

            return(View(list));
        }