public JsonResult GetTeacherCourses(int teacherId, int deptId)
        {
            var courses     = new BusinessLogics().DepartmentActiveCourses(deptId);
            var CreditTaken = courses.AsEnumerable().Where(x => x.TeacherId == teacherId).Sum(y => y.CourseCredit);

            return(Json(new {
                Courses = courses,
                CreditTaken = CreditTaken
            }
                        , JsonRequestBehavior.AllowGet));
        }