public async Task <PaginatedVouchersListResponseModel> GetCampaignVouchersAsync(Guid campaignId, [FromQuery] BasePaginationRequestModel pageData) { if (campaignId == default) { throw new ArgumentNullException(nameof(campaignId)); } var pageInfo = _mapper.Map <PageInfo>(pageData); var result = await _vouchersService.GetCampaignVouchersAsync(campaignId, pageInfo); return(_mapper.Map <PaginatedVouchersListResponseModel>(result)); }