private List <School> AllSchools() { List <School> allSchools = new List <School>(); MSSQL DB = new MSSQL(); allSchools = DB.FindAllSchools(); DB.CloseConnection(); return(allSchools); }
private List <City> AllStreets() { MSSQL DB = new MSSQL(); List <City> allStreets = new List <City>(); allStreets = DB.GetAllStreets(); DB.CloseConnection(); return(allStreets); }