Esempio n. 1
0
 /// <summary>
 /// 初始化控制器
 /// <param name="cmsMaterialTypeService">素材类型服务</param>
 /// <param name="cmsMaterialTypeRepository">素材类型仓储</param>
 /// </summary>
 public CmsMaterialTypeController(ICmsMaterialTypeService cmsMaterialTypeService,
                                  ICmsMaterialTypeRepository cmsMaterialTypeRepository)
 {
     _cmsMaterialTypeService    = cmsMaterialTypeService;
     _cmsMaterialTypeRepository = cmsMaterialTypeRepository;
 }
Esempio n. 2
0
 /// <summary>
 /// 初始化服务
 /// </summary>
 public CmsMaterialTypeService(ICmsMaterialTypeRepository cmsMaterialTypeRepository,
                               InitHelper initHelper)
 {
     _cmsMaterialTypeRepository = cmsMaterialTypeRepository;
     _initHelper = initHelper;
 }