Ejemplo n.º 1
0
 public HomeController(IBoardThreadRepository boardRepo, IArticleRepository newsRepo, IColumnRepository columnRepo)
 {
     this.boardRepo  = boardRepo;
     this.newsRepo   = newsRepo;
     this.columnRepo = columnRepo;
     newsHelper      = new NewsHelper(newsRepo);
 }
Ejemplo n.º 2
0
 public BoardController(
     IBoardThreadRepository boardRepo,
     IArticleRepository articleRepo,
     IGoogleRecaptchaHelper grHelper,
     IWriter writer,
     ILogger <BoardController> logger)
 {
     googleRecaptchaHelper = grHelper;
     this.boardRepo        = boardRepo;
     this.articleRepo      = articleRepo;
     this.writer           = writer;
     this.logger           = logger;
 }
Ejemplo n.º 3
0
        public AdminController(
            IArticleRepository newsRepo,
            IBoardThreadRepository boardRepo,
            IColumnRepository columnRepo,
            IColumnRequestRepository columnRequestsRepo,
            UserManager <IdentityUser> userManager,
            RoleManager <IdentityRole> roleManager)
        {
            this.newsRepo           = newsRepo;
            this.boardRepo          = boardRepo;
            this.columnRepo         = columnRepo;
            this.columnRequestsRepo = columnRequestsRepo;
            this.userManager        = userManager;
            this.roleManager        = roleManager;

            newsHelper = new NewsHelper(this.newsRepo);
        }