public void Initialize() { _db = new WeatherSqlDAO(_connectionString); _userMgr = new UserManager(new UserSecurityDAO(_connectionString)); _natlPark = new NationalParkSqlDAO(_connectionString); _tran = new TransactionScope(); // adding a new national park (due to DB PK/FK constraints on parkCode to add weather Item) _natlPark.AddNewNationalPark(_nationalParkItem); }
public void Initialize() { _db = new NationalParkSqlDAO(_connectionString); _userMgr = new UserManager(new UserSecurityDAO(_connectionString)); _tran = new TransactionScope(); }
public HomeController(INationalParkDAO nationalParkDAO, IWeatherDAO weatherDAO) { this.nationalParkDAO = nationalParkDAO; this.weatherDAO = weatherDAO; }
public HomeController(INationalParkDAO nationalP, IWeatherDAO weather) { this.NPD = nationalP; this.WD = weather; }
public HomeController(IWeatherDAO weatherDb, IUserSecurityDAO userDb, INationalParkDAO db, IHttpContextAccessor httpContext) : base(userDb, httpContext) { _db = db; _weatherDb = weatherDb; }
public SurveyController(ISurveyDAO surveyDAO, INationalParkDAO nationalParkDAO) { this.surveyDAO = surveyDAO; this.nationalParkDAO = nationalParkDAO; }
public SurveyController(ISurveyDAO s, INationalParkDAO np) { this.surveyDao = s; this.SurveyResults = surveyDao.GetSurveyResults(); this.NPD = np; }