예제 #1
0
 public IndexController(
     IStuanswerdetailService stuanswerdetailService,
     IStuscoreService stuscoreService,
     IExamService examService)
 {
     _stuanswerdetailService = stuanswerdetailService;
     _stuscoreService        = stuscoreService;
     _examService            = examService;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// 依赖注入
 /// </summary>
 /// <param name="stuscoreService"></param>
 public ScoreController(IStuscoreService stuscoreService)
 {
     _stuscoreService = stuscoreService;
 }