public NewsController(IShapeFactory shapeFactory
     , INewsService newsService
     , INewsTypeService newsTypeService
     , IOrchardServices services)
 {
     _newsService = newsService;
     _newsTypeService = newsTypeService;
     _services = services;
     Shape = shapeFactory;
 }
예제 #2
0
 public NewsTypeController(INewsTypeService newsTypeService, IWebHostEnvironment webHostEnvironment, IRedisHelper redisHelper
                           , IMemoryCache memoryCache
                           , ILogger <NewsTypeController> logger)
 {
     _newsTypeService = newsTypeService;
     _webHost         = webHostEnvironment;
     _redisHelper     = redisHelper;
     _memoryCache     = memoryCache;
     _logger          = logger;
 }
 public NewsTypeController(INewsTypeService newsTypeService)
 {
     _newsTypeService = newsTypeService;
 }