public JsonResult GetCoursesByDeptId(int deptId)
        {
            ScheduleManager scheduleManager = new ScheduleManager();
            var             courses         = db.Courses.Where(m => m.DepartmentId == deptId).ToList();
            List <object>   clsSches        = new List <object>();

            foreach (var course in courses)
            {
                var scheduleInfo = scheduleManager.ClassSchedules(deptId, course.Id);
                if (scheduleInfo == "")
                {
                    scheduleInfo = "Not sheduled yet";
                }

                var clsSch = new
                {
                    CCode        = course.CourseCode,
                    CName        = course.CourseName,
                    ScheduleInfo = scheduleInfo
                };
                clsSches.Add(clsSch);
            }
            return(Json(clsSches, JsonRequestBehavior.AllowGet));
        }