public ActionResult PracticeSubjects( int courseId, int returnCount, string path) { StudentPracticeBll bll = new StudentPracticeBll(); Yw_StudentTask task = bll.GeneratePractice(GetCurrentUser().StudentId, courseId, returnCount); return(RedirectToAction( nameof(Practice), new { StudyTaskId = task.Yuk_TaskId, StudentTaskId = task.Yuk_Id, TaskType = (int)StudyTaskTypeEnum.课后练习, Path = path })); }
public void GeneratePracticeTest() { StudentPracticeBll bll = new StudentPracticeBll(); bll.GeneratePractice(10003, 10001, 20); }