/// <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> /// <param name="totalPages">total pages</param> public async Task <List <IGeoZone> > GetGeoZonePage( Guid countryGuid, int pageNumber, int pageSize, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); DbDataReader reader = dbGeoZone.GetPage(countryGuid, pageNumber, pageSize); return(LoadGeoZoneListFromReader(reader)); }
/// <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> /// <param name="totalPages">total pages</param> public async Task <List <IGeoZone> > GetGeoZonePage(Guid countryGuid, int pageNumber, int pageSize) { DbDataReader reader = dbGeoZone.GetPage(countryGuid, pageNumber, pageSize); return(LoadGeoZoneListFromReader(reader)); }