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)); }
public async Task <IActionResult> Create( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "resources")] ResourceViewModel resource, HttpRequest req, CancellationToken cancellationToken) { return(await _service.Create(resource, req, cancellationToken)); }