Exemple #1
0
        static void PrintCountries()
        {
            var countryDAL       = new CountryDAL(_iconfiguration);
            var listCountryModel = countryDAL.GetList();

            listCountryModel.ForEach(item =>
            {
                Console.WriteLine(item.Country);
            });
            Console.WriteLine("Press any key to stop.");
            Console.ReadKey();
        }
Exemple #2
0
 public List <Country> GetList()
 {
     return(countryDAL.GetList());
 }