public ActionResult EnrollCourseSave()
 {
     ViewBag.message      = TempData["Msg"];
     ViewBag.registerList = registerStudentManager.GateRegistationNumberManager();
     ViewBag.courseList   = courseManager.GateAllCourseManager();
     return(View());
 }
        public JsonResult GetCourseByDepartmentId(int?DepartmentId)
        {
            var course     = courseManager.GateAllCourseManager();
            var courseList = course.Where(c => c.DepartmentId == DepartmentId).ToList();

            return(Json(courseList, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GateAllCourse(int?StudentId)
        {
            var department = GetDepertmentIdByStudentId(StudentId);
            var course     = courseManager.GateAllCourseManager();
            var courseList = course.Where(a => a.DepartmentId == department).ToList();

            return(Json(courseList, JsonRequestBehavior.AllowGet));
        }