public CategoryController(ICodeFileService codeFileService, ISystemLogService systemLogService) : base(systemLogService)
 {
     codeFileService.InitialiseIValidationDictionary
         (new ModelStateWrapper(this.ModelState));
     IService         = codeFileService;
     _codeFileService = codeFileService;
 }
예제 #2
0
 public ItemController(
     IDrugService drugService,
     IDrugSettingService drugSettingService,
     IDrugCostService drugCostService,
     IDrugAppearanceService drugAppearanceService,
     ICodeFileService codeFileService,
     ISystemLogService systemLogService) : base(systemLogService)
 {
     _modelState = new ModelStateWrapper(ModelState);
     drugService.InitialiseIValidationDictionary(_modelState);
     drugSettingService.InitialiseIValidationDictionary(_modelState);
     drugCostService.InitialiseIValidationDictionary(_modelState);
     drugAppearanceService.InitialiseIValidationDictionary(_modelState);
     codeFileService.InitialiseIValidationDictionary(_modelState);
     _drugService           = drugService;
     _drugSettingService    = drugSettingService;
     _drugCostService       = drugCostService;
     _drugAppearanceService = drugAppearanceService;
     _codeFileService       = codeFileService;
 }