示例#1
0
        public async Task <IActionResult> Update(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "managedSecrets/{secretId}")] string secretJson, //ManagedSecretViewModel inputSecret,
            string secretId, CancellationToken cancellationToken)
        {
            var inputSecret = JsonConvert.DeserializeObject <ManagedSecretViewModel>(secretJson);

            return(await _service.Update(inputSecret, Guid.Parse(secretId), cancellationToken));
        }
 public async Task <IActionResult> Update(
     [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "managedSecrets/{secretId:guid}")] ManagedSecretViewModel inputSecret,
     Guid secretId, CancellationToken cancellationToken)
 {
     return(await _service.Update(inputSecret, secretId, cancellationToken));
 }