/// <summary> /// 获取课程和课时信息 /// </summary> public DtoStudyTaskListItem GetCourseLessonNameByStudyTask(int studentTaskId) { DtoStudyTaskListItem item = StudyTaskRepository.GetCourseLessonByStudyTask(studentTaskId); return(item); }
public ActionResult Practice( int studyTaskId, int studentTaskId, StudyTaskTypeEnum taskType, string path) { ViewBag.TaskType = taskType; ViewBag.StudentTaskId = studentTaskId; ViewBag.Path = path; var bll = new StudentPracticeBll(); string pageTitle = string.Empty; DtoStudyTaskListItem item = bll.GetCourseLessonNameByStudyTask(studentTaskId); if (taskType == StudyTaskTypeEnum.课后练习) { pageTitle = $"{item.CourseName}课后练习"; } else { pageTitle = $"{item.CourseName}-第{item.LessonIndex}课时课后任务"; } ViewBag.PageTitle = pageTitle; return(View(studyTaskId)); }