Beispiel #1
0
 public TagsController(NccTagService nccTagService, NccPostService nccPostService, NccUserService nccUserService, ILoggerFactory loggerFactory)
 {
     _nccTagService  = nccTagService;
     _nccPostService = nccPostService;
     _nccUserService = nccUserService;
     _loggerFactory  = loggerFactory;
     _logger         = _loggerFactory.CreateLogger <CategoryController>();
 }
Beispiel #2
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 TagCloudWidget(NccTagService nccTagService) : base(
         typeof(BlogController),
         "Tag Cloud",
         "This is a widget to display Tags Cloud.",
         "",
         "Widgets/TagCloud",
         "Widgets/TagCloudConfig",
         true
         )
 {
     _nccTagService = nccTagService;
 }
        public DemoDataHomeController(ILoggerFactory factory, RoleManager <NccRole> roleManager, UserManager <NccUser> userManager, NccPageService pageService, NccCategoryService categoryService, NccTagService tagService, NccPostService postService, NccCommentsService commentsService, NccPermissionService nccPermissionService)
        {
            _logger               = factory.CreateLogger <DemoDataHomeController>();
            _roleManager          = roleManager;
            _userManager          = userManager;
            _nccPermissionService = nccPermissionService;

            _pageService = pageService;

            _categoryService = categoryService;
            _tagService      = tagService;
            _postService     = postService;
            _commentsService = commentsService;
        }
Beispiel #5
0
 public TagCloudWidget(
     IViewRenderService viewRenderService,
     NccWebSiteWidgetService websiteWidgetService,
     NccTagService nccTagService) : base(
         "Tag Cloud",
         "This is a widget to display Tags Cloud.",
         "",
         true
         )
 {
     _viewRenderService    = viewRenderService;
     _websiteWidgetService = websiteWidgetService;
     _nccTagService        = nccTagService;
 }
Beispiel #6
0
 public TagCloudWidget(
     IViewRenderService viewRenderService,
     NccWebSiteWidgetService websiteWidgetService,
     NccTagService nccTagService) : base(
         "NetCoreCMS.Core.Modules.Blog.Widgets.TagCloud",
         "Tag Cloud",
         "This is a widget to display Tags Cloud.",
         "",
         true
         )
 {
     _viewRenderService    = viewRenderService;
     _websiteWidgetService = websiteWidgetService;
     _nccTagService        = nccTagService;
 }
 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>();
 }