Exemplo n.º 1
0
 public PostController(NccPostService nccPostService, NccPostDetailsService nccPostDetailsService, NccCategoryService nccCategoryService, NccTagService nccTagService, NccShortCodeProvider nccShortCodeProvider, IMediator mediator, ILoggerFactory loggerFactory)
 {
     _nccPostService        = nccPostService;
     _nccPostDetailsService = nccPostDetailsService;
     _nccCategoryService    = nccCategoryService;
     _nccTagService         = nccTagService;
     _nccShortCodeProvider  = nccShortCodeProvider;
     _loggerFactory         = loggerFactory;
     _mediator = mediator;
     _logger   = _loggerFactory.CreateLogger <BlogController>();
 }
 public CmsMenuController(
     NccMenuService menuService,
     NccPageService pageService,
     NccPageDetailsService pageDetailsService,
     NccPostDetailsService nccPostDetailsService,
     NccCategoryDetailsService nccCategoryDetailsService,
     NccTagService nccTagService,
     ILoggerFactory factory)
 {
     _pageService               = pageService;
     _menuService               = menuService;
     _pageDetailsService        = pageDetailsService;
     _nccPostDetailsService     = nccPostDetailsService;
     _nccCategoryDetailsService = nccCategoryDetailsService;
     _nccTagService             = nccTagService;
     _logger = factory.CreateLogger <CmsMenuController>();
 }