Esempio 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 = await dbGeoCountry.GetAll(cancellationToken);

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

            return(LoadCountryListFromReader(reader));
        }