public static async Task <IActionResult> ProjectCreate( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "projects")] HttpRequest req, ILogger log) { string requestBody = await new StreamReader(req.Body).ReadToEndAsync(); dynamic data = JsonConvert.DeserializeObject <Project>(requestBody); using (var da = new ProjectDataAccess(conStr)) { return(new OkObjectResult(await da.CreateAsync(data))); } }