public async Task <ServiceResponse <ICollection <PollDto> > > Handle(GetAllPollsQuery request, CancellationToken cancellationToken)
        {
            var result = await _rpcClient.CallAsync <GetAllPollsQuery, ServiceResponse <ICollection <PollDto> > >(request, RpcEndpoints.PollGetAll.Exchange,
                                                                                                                  RpcEndpoints.PollGetById.ResponseQueue, RoutingKeys.Request);

            return(result);
        }
        public async Task <ServiceResponse <ICollection <PollDto> > > Handle(GetAllPollsQuery query, CancellationToken cancellationToken)
        {
            var polls = await _pollRepository.GetAllAsync();

            return(ServiceResponse <ICollection <PollDto> > .Success(_mapper.Map <ICollection <PollDto> >(polls)));
        }