Esempio n. 1
0
        private List <School> AllSchools()
        {
            List <School> allSchools = new List <School>();
            MSSQL         DB         = new MSSQL();

            allSchools = DB.FindAllSchools();
            DB.CloseConnection();
            return(allSchools);
        }
Esempio n. 2
0
        private List <City> AllStreets()
        {
            MSSQL       DB         = new MSSQL();
            List <City> allStreets = new List <City>();

            allStreets = DB.GetAllStreets();
            DB.CloseConnection();
            return(allStreets);
        }