コード例 #1
0
 //brining in the variable and intializing it in the constructor
 public HomeController(ILogger <HomeController> logger, SignUpDbContext con)
 {
     _logger = logger;
     context = con;
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: Destro999/project1
 //constructor for the HomeController. Establish context to database and initialize TourTimes object
 public HomeController(ILogger <HomeController> logger, SignUpDbContext con)
 {
     _logger   = logger;
     context   = con;
     tourTimes = new TourTimes();
 }