Exemple #1
0
        public JsonResult GetTeacherCourseByDepartmentId(int id)
        {
            var        teacherInfo = anDepartmentManager.GetTeacherByDepartmentId(id);
            var        courseInfo  = anDepartmentManager.GetCourseByDepartmentId(id);
            Department department  = new Department();

            department.Courses  = courseInfo;
            department.Teachers = teacherInfo;
            return(Json(department));
        }