Ejemplo n.º 1
0
 public async Task <IReadOnlyCollection <ReadManufacturerDto> > ManufacturerPaginationAsync(int pageNumber,
                                                                                            int itemsCount,
                                                                                            CancellationToken token) =>
 Mapper.Map <IEnumerable <Manufacturer>, IReadOnlyCollection <ReadManufacturerDto> >(
     await ManufacturerRepository.FetchAsync(
         itemsCount,
         itemsCount * (pageNumber - 1),
         token));