Ejemplo n.º 1
0
 public HomeController(INpGeekDAL npGeekDal, IWeatherDAL weatherDal, ISurveyDAL surveyDal, ISummarySurveysDAL summarySurveysDal)
 {
     this.npGeekDal         = npGeekDal;
     this.weatherDal        = weatherDal;
     this.surveyDal         = surveyDal;
     this.summarySurveysDal = summarySurveysDal;
 }
Ejemplo n.º 2
0
 public DetailController(IParkDAL dal, IWeatherDAL dal2)
 {
     this.dal  = dal;
     this.dal2 = dal2;
 }
Ejemplo n.º 3
0
 public WeatherController(IWeatherDAL weatherDal)
 {
     this.weatherDal = weatherDal;
 }
        public void Initialize()
        {
            _weatherDAL = new WeatherDAL(NpGeekDbConnectionString);

            parkCode = "CVNP";
        }
Ejemplo n.º 5
0
 // create with DALs for convenience
 public HomeController(IParkDAL parkDal, IWeatherDAL weatherDal)
 {
     this.parkDal    = parkDal;
     this.weatherDal = weatherDal;
 }
 public NationalParkSqlDAL(string connectionString, IWeatherDAL weatherDAL, ISurveyDAL surveyDAL)
 {
     this.connectionString = connectionString;
     this.weatherDAL       = weatherDAL;
     this.surveyDAL        = surveyDAL;
 }
Ejemplo n.º 7
0
 public HomeController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     this.parkDAL    = parkDAL;
     this.weatherDAL = weatherDAL;
 }
 public WeatherController(IWeatherDAL weatherDAL, IParksDAL parkDAL)
 {
     this.weatherDAL = weatherDAL;
     this.parkDAL    = parkDAL;
 }
Ejemplo n.º 9
0
 public HomeController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     _parkDAL    = parkDAL;
     _weatherDAL = weatherDAL;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Constructor for the Controller
 /// </summary>
 /// <param name="park">IParkDAL object that is made using dependency injection</param>
 /// <param name="survey">ISurveyDAL object that is made using dependency injection</param>
 /// <param name="weather">IWeatherDAL object that is made using dependency injection</param>
 public HomeController(IParkDAL park, ISurveyDAL survey, IWeatherDAL weather)
 {
     _parkDAL    = park;
     _surveyDAL  = survey;
     _weatherDAL = weather;
 }
Ejemplo n.º 11
0
 public HomeController(IParkDAL pDal, IWeatherDAL wDal)
 {
     this.pdal = pDal;
     this.wdal = wDal;
 }
Ejemplo n.º 12
0
 public WeatherController(IWeatherDAL weatherDAL)
 {
     this.weatherDAL = weatherDAL;
 }
Ejemplo n.º 13
0
 public HomeController(IParkDAL dal, IWeatherDAL weatherDal)
 {
     this.dal        = dal;
     this.weatherDal = weatherDal;
 }
 /// <summary>
 /// Instantiates ParkController with access to the ParkDAL and WeatherDAL
 /// </summary>
 /// <param name="parkDAL">CRUD methods for Park</param>
 /// <param name="weatherDAL"> CRUD methods for Weather</param>
 public ParkController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     this._parkDAL    = parkDAL;
     this._weatherDAL = weatherDAL;
 }
Ejemplo n.º 15
0
 public ParkSqlDAL(string connectionString, IWeatherDAL weatherDal)
 {
     this.connectionString = connectionString;
     this.weatherDal       = weatherDal;
 }
 public HomeController(IParksDAL dal, IWeatherDAL dal2)
 {
     _dal        = dal;
     _weatherdal = dal2;
 }
Ejemplo n.º 17
0
 public WeatherController(IWeatherDAL WeatherDAL)
 {
     this.WeatherDAL = WeatherDAL;
 }
Ejemplo n.º 18
0
 public HomeController(IParkDAL dal, IWeatherDAL dalWeather)
 {
     this.dal        = dal;
     this.dalWeather = dalWeather;
 }
Ejemplo n.º 19
0
 public HomeController(IParksDAL parksDAL, IWeatherDAL weatherDAL, ISurveyDAL surveyDAL)
 {
     this.ParksDAL   = parksDAL;
     this.WeatherDAL = weatherDAL;
     this.SurveyDAL  = surveyDAL;
 }
 public HomeController(IParkDAL parkDAL, ISurveyDAL surveyDAL, IWeatherDAL weatherDAL)
 {
     _parkdal    = parkDAL;
     _surveyDal  = surveyDAL;
     _weatherDAL = weatherDAL;
 }
        // GET: Weather

        //private static string parkCode;

        public WeatherController(IWeatherDAL dal)
        {
            this.dal = dal;
        }
Ejemplo n.º 22
0
 public List <Weather> getFiveDaysWeather(string parkCode)
 {
     weatherDAL = new WeatherSqlDAL();
     return(weatherDAL.getWeatherByParkCode(parkCode));
 }
 public WeatherController(IWeatherDAL dal)
 {
     _dal = dal;
 }
 public void Setup()
 {
     _weatherDAL = new WeatherSqlDAL(NpGeekDbConnectionString);
 }