コード例 #1
0
 public HomeController(ILogger <HomeController> logger,
                       MvcNoticiaContext context,
                       MvcRelatoContext contextRelato,
                       MvcTipContext contextTip,
                       MvcSobreMiContext contextSobreMi,
                       MvcPortfolioContext contextPortfolio,
                       MvcPodcastContext contextPodcast,
                       MvcConfigContext contextConfig,
                       IWebHostEnvironment hostEnvironment)
 {
     _logger               = logger;
     _context              = context;
     _contextRelato        = contextRelato;
     _contextTip           = contextTip;
     _contextSobreMi       = contextSobreMi;
     _contextPortfolio     = contextPortfolio;
     _contextPodcast       = contextPodcast;
     _contextConfig        = contextConfig;
     this._hostEnvironment = hostEnvironment;
 }
コード例 #2
0
 public SobreMiController(MvcSobreMiContext context, IWebHostEnvironment hostEnvironment)
 {
     _context = context;
     this._hostEnvironment = hostEnvironment;
 }