Esempio n. 1
0
        /// <summary>
        /// Gets an IList with all instances of GeoZone.
        /// </summary>
        public async Task <List <IGeoZone> > GetGeoZonesByCountry(
            Guid countryGuid,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            DbDataReader reader = await dbGeoZone.GetByCountry(countryGuid, cancellationToken);

            return(LoadGeoZoneListFromReader(reader));
        }
Esempio n. 2
0
        /// <summary>
        /// Gets an IList with all instances of GeoZone.
        /// </summary>
        public async Task <List <IGeoZone> > GetGeoZonesByCountry(Guid countryGuid)
        {
            DbDataReader reader = await dbGeoZone.GetByCountry(countryGuid);

            return(LoadGeoZoneListFromReader(reader));
        }