/// <summary>
        /// takes id and fetch list of assign credit list
        /// then uses GetTotalAssignedCreditFromAssignedTeachers method to get total
        /// </summary>
        /// <param name="teacherId"></param>
        /// <returns>total assigned credit</returns>
        public int GetAssignedCreditByTeacherId(int teacherId)
        {
            //TeacherManager aTeacherManager = new TeacherManager();
            //DepartmentManager aDepartmentManager = new DepartmentManager();
            //CourseManager aCourseManager = new CourseManager();
            CourseAssignGateway aCourseAssignGateway         = new CourseAssignGateway();
            List <int>          courseIdFromAssignedTeachers = new List <int>();

            courseIdFromAssignedTeachers = aCourseAssignGateway.GetAssignedCreditByTeacherId(teacherId);
            int totalAssignedCredit = GetTotalAssignedCreditFromAssignedTeachers(courseIdFromAssignedTeachers);

            return(totalAssignedCredit);
        }