public async Task <PaginatedCustomerVouchersResponse> GetByCustomerIdAsync(Guid customerId, [FromQuery] PaginationModel pagination) { var vouchers = await _vouchersService.GetByCustomerIdAsync(customerId, _mapper.Map <PageInfo>(pagination)); var model = _mapper.Map <PaginatedCustomerVouchersResponse>(vouchers); return(model); }