public SurveyController(ISurveyDAO surveyDAO, INatParkDAO parkDAO) { this.surveyDAO = surveyDAO; this.parkDAO = parkDAO; }
// Remember that in order to do dependency injection, we need to add the DAOs in the constructor // Otherwise we need to pass in the strings manually public HomeController(INatParkDAO natParkDAO, IWeatherDAO weatherDAO) { this.parkDAO = natParkDAO; this.weatherDAO = weatherDAO; }