public async Task <List <SecretDto> > Handle(GetAllSecretsQuery request, CancellationToken cancellationToken)
        {
            var result = await _secretRepository.GetAllSecretsAsync();

            //automapper to convert it back to secretDto
            var secretDto = _mapper.Map <IEnumerable <SecretDto> >(result);

            return(secretDto.ToList());
        }