コード例 #1
0
        public async Task <IActionResult> Create(
            [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "resources")] string resourceJson, /*ResourceViewModel resource,*/
            HttpRequest req, CancellationToken cancellationToken)
        {
            var resource = JsonConvert.DeserializeObject <ResourceViewModel>(resourceJson);

            return(await _service.Create(resource, req, cancellationToken));
        }
コード例 #2
0
 public async Task <IActionResult> Create(
     [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "resources")] ResourceViewModel resource,
     HttpRequest req, CancellationToken cancellationToken)
 {
     return(await _service.Create(resource, req, cancellationToken));
 }