예제 #1
0
 public HomeController(
     IHomeHelper homeHelper,
     SignInManager <User> signInManager,
     IPageService pageService,
     ICategoryService categoryService,
     ISettingService settingService,
     IStatsService statsService,
     ILogger <HomeController> logger)
 {
     this.homeHelper      = homeHelper;
     this.signInManager   = signInManager;
     this.pageService     = pageService;
     this.categoryService = categoryService;
     this.settingService  = settingService;
     this.statsService    = statsService;
     this.logger          = logger;
 }
예제 #2
0
 public BlogController(
     IBlogPostService blogPostService,
     ICategoryService categoryService,
     ITagService tagService,
     IStatsService statsService,
     ISettingService settingService,
     IHomeHelper homeHelper,
     IBlogViewModelHelper blogViewModelHelper,
     IDistributedCache distributedCache)
 {
     this.blogPostService     = blogPostService;
     this.categoryService     = categoryService;
     this.tagService          = tagService;
     this.statsService        = statsService;
     this.settingService      = settingService;
     this.homeHelper          = homeHelper;
     this.blogViewModelHelper = blogViewModelHelper;
     this.distributedCache    = distributedCache;
 }
 public HomeController(ILogger <HomeController> logger, IHomeHelper homeHelper)
 {
     _logger     = logger;
     _homeHelper = homeHelper;
 }