예제 #1
0
 public CountsController(IOptions <AppSettings> appSettings)
 {
     _dbService = new NHibernateDbService(appSettings.Value);
 }
예제 #2
0
 public HomeController(IOptions <AppSettings> appSettings, IHostingEnvironment hostingEnvironment)
 {
     _dbService          = new NHibernateDbService(appSettings.Value);
     _appSettings        = appSettings;
     _hostingEnvironment = hostingEnvironment;
 }