Ejemplo n.º 1
0
        public async Task <ResultWrapper <Secret[]> > vault_listSecrets(string vaultId)
        {
            try
            {
                var secrets = await _vaultService.ListSecrets(Guid.Parse(vaultId));

                return(ResultWrapper <Secret[]> .Success(secrets.ToArray()));
            }
            catch (Exception e)
            {
                return(ResultWrapper <Secret[]> .Fail(e));
            }
        }