public JsonResult GetCreditLimitForTeacher(int teacherId)
        {
            List <CourseAssignToTeacher> teachers = courseAssignToTeacher.GetAllTeacherss();
            var credits = teachers.Where(a => a.Id == teacherId).ToList();

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