public IndexController( IStuanswerdetailService stuanswerdetailService, IStuscoreService stuscoreService, IExamService examService) { _stuanswerdetailService = stuanswerdetailService; _stuscoreService = stuscoreService; _examService = examService; }
/// <summary> /// 依赖注入 /// </summary> public ExamController( IExamService examService, IQuestionService questionService, IStuanswerdetailService stuanswerdetailService, ISelectService selectService, IJudgeService judgeService, IStuscoreService stuscoreService) { _examService = examService; _questionService = questionService; _stuanswerdetailService = stuanswerdetailService; _selectService = selectService; _judgeService = judgeService; _stuscoreService = stuscoreService; }
/// <summary> /// 依赖注入 /// </summary> /// <param name="stuanswerdetail"></param> public WrongController(IStuanswerdetailService stuanswerdetail) { _stuanswerdetail = stuanswerdetail; }