public ActionResult AssignCourseToTeachers(AssignCourse assignCourse)
        {
            ViewBag.Message = courseAssignManager.SaveAssignCourse(assignCourse);
            List <Department> departmentsList = departmentManager.GetDepartmentsList();

            return(View(departmentsList));
        }
コード例 #2
0
        public JsonResult CourseAssign(CourseAssign courseAssign)
        {
            courseAssign.ReaminingCredit = courseAssign.ReaminingCredit - courseAssign.Credit;


            string log = anCourseAssignManager.SaveAssignCourse(courseAssign);

            anCourseAssignManager.UpdateReaminingCredit(courseAssign.ReaminingCredit, courseAssign.TeacherId);

            ViewBag.Department = aSaveTeacherManager.TakeAllDeparment();



            return(Json(log));
        }