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(); }
public List <Country> GetList() { return(countryDAL.GetList()); }