Exemple #1
0
        /// <summary>
        /// Gets an IList with page of instances of GeoZone.
        /// </summary>
        /// <param name="pageNumber">The page number.</param>
        /// <param name="pageSize">Size of the page.</param>
        public async Task <List <IGeoZone> > GetGeoZonePage(
            Guid countryGuid,
            int pageNumber,
            int pageSize,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            DbDataReader reader = await dbGeoZone.GetPage(countryGuid, pageNumber, pageSize, cancellationToken);

            return(LoadGeoZoneListFromReader(reader));
        }
Exemple #2
0
        /// <summary>
        /// Gets an IList with page of instances of GeoZone.
        /// </summary>
        /// <param name="pageNumber">The page number.</param>
        /// <param name="pageSize">Size of the page.</param>
        public async Task <List <IGeoZone> > GetGeoZonePage(Guid countryGuid, int pageNumber, int pageSize)
        {
            DbDataReader reader = await dbGeoZone.GetPage(countryGuid, pageNumber, pageSize);

            return(LoadGeoZoneListFromReader(reader));
        }