static void Main(string[] args) { string _connectionString; NPSClass test = new NPSClass(); NpsDALSql dALSql = new NpsDALSql(); List <Park> parks = dALSql.GetAllParks(); }
public ActionResult ParkDetails(string parkCode = "CVNP") { if (Session["C or F"] == null) { Session["C or F"] = 1; } DateTime dt = DateTime.Now; List <DateTime> alldates = new List <DateTime>(); for (int i = 0; i < 5; i++) { alldates.Add(DateTime.Now.AddDays(i)); } multiClass.DateTimes = alldates; multiClass.AllParks = sqlDAL.GetAllParks(); multiClass.Park = multiClass.AllParks.Find(p => p.ParkCode.ToUpper() == parkCode.ToUpper()); multiClass.AllWeather = sqlDAL.GetAllWeather(); multiClass.AllWeather = sqlDAL.GetOneParkWeather(parkCode); return(View(multiClass)); }