//brining in the variable and intializing it in the constructor public HomeController(ILogger <HomeController> logger, SignUpDbContext con) { _logger = logger; context = con; }
//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(); }