示例#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);

            return(LoadGeoZoneListFromReader(reader));
        }
示例#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));
        }