Esempio n. 1
0
        public async Task <IActionResult> Create([HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "managedSecrets")] string secretJson, //ManagedSecretViewModel inputSecret,
                                                 CancellationToken cancellationToken)
        {
            var inputSecret = JsonConvert.DeserializeObject <ManagedSecretViewModel>(secretJson);

            return(await _service.Create(inputSecret, cancellationToken));
        }
Esempio n. 2
0
 public async Task <IActionResult> Create([HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "managedSecrets")] ManagedSecretViewModel inputSecret, CancellationToken cancellationToken)
 {
     return(await _service.Create(inputSecret, cancellationToken));
 }