public CategoryController(ICodeFileService codeFileService, ISystemLogService systemLogService) : base(systemLogService) { codeFileService.InitialiseIValidationDictionary (new ModelStateWrapper(this.ModelState)); IService = codeFileService; _codeFileService = codeFileService; }
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; }