/// <summary>
        /// Gets an IList with all instances of GeoCountry.
        /// </summary>
        public async Task <List <IGeoCountry> > GetAllCountries(CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            DbDataReader reader = dbGeoCountry.GetAll();

            return(LoadCountryListFromReader(reader));
        }
Exemple #2
0
        /// <summary>
        /// Gets an IList with all instances of GeoCountry.
        /// </summary>
        public async Task <List <IGeoCountry> > GetAllCountries()
        {
            DbDataReader reader = dbGeoCountry.GetAll();

            return(LoadCountryListFromReader(reader));
        }