Esempio n. 1
0
        private IEnumerable <string> GetAllUniversities()
        {
            //This could be a call to University in Database
            grabFromDB     grabFromDB = new grabFromDB();
            List <UniData> uni        = grabFromDB.getUniversities();
            List <string>  output     = new List <string>();
            string         temp;

            grabFromDB.close();
            foreach (UniData data in uni)
            {
                temp = data.name;
                output.Add(temp);
            }
            return(output);
        }