public async Task <VoterDto> Handle(CreateVoterCommand request, CancellationToken cancellationToken) { var voterEntity = _mapper.Map <Voter>(request._voterForCreationDto); await _voterRepository.AddAsync(voterEntity); var voterDtoToReturn = _mapper.Map <VoterDto>(voterEntity); return(voterDtoToReturn); }