예제 #1
0
 public CmsModuleController(NccModuleService moduleService, IHostingEnvironment hostingEnvironment, ILoggerFactory factory)
 {
     _moduleService      = moduleService;
     _hostingEnvironment = hostingEnvironment;
     _logger             = factory.CreateLogger <CmsModuleController>();
     moduleManager       = new ModuleManager();
 }
예제 #2
0
 public CmsModuleController(
     NccModuleService moduleService,
     NccSettingsService settingsService,
     IHostingEnvironment hostingEnvironment,
     ILoggerFactory factory,
     IHostingEnvironment env
     )
 {
     _moduleService      = moduleService;
     _settingsService    = settingsService;
     _hostingEnvironment = hostingEnvironment;
     _logger             = factory.CreateLogger <CmsModuleController>();
     _env          = env;
     moduleManager = new ModuleManager();
 }
예제 #3
0
 public DashboardController(NccWebSiteService nccWebSiteService, NccPageService pageService, NccPostService postService, NccCategoryService categoryService, INccSettingsService settingsService, RoleManager <NccRole> roleManager, UserManager <NccUser> userManager, NccStartupService startupService, IConfiguration configuration, IHostingEnvironment hostingEnv,
                            NccModuleService moduleService, ILoggerFactory loggarFactory)
 {
     _webSiteService     = nccWebSiteService;
     _pageService        = pageService;
     _postService        = postService;
     _categoryService    = categoryService;
     _settingsService    = settingsService;
     _roleManager        = roleManager;
     _userManager        = userManager;
     _startupService     = startupService;
     _configuration      = configuration;
     _hostingEnvironment = hostingEnv;
     _moduleService      = moduleService;
     _logger             = loggarFactory.CreateLogger <AdminController>();
 }