Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 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));
        }