예제 #1
0
        public async Task <ResultWrapper <Secret> > vault_createSecret(string vaultId, Secret secret)
        {
            try
            {
                Secret result = await _vaultService.CreateSecret(Guid.Parse(vaultId), secret);

                return(ResultWrapper <Secret> .Success(result));
            }
            catch (Exception e)
            {
                return(ResultWrapper <Secret> .Fail(e));
            }
        }