public static async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] LabelInformation info, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); LabelInformation labelInformation = info; //_logger.LogInformation("create the label."); string name = ""; // req.Query["name"]; //string requestBody = await new StreamReader(req.Body).ReadToEndAsync(); // dynamic data = JsonConvert.DeserializeObject(requestBody); // name = name ?? data?.name; return(name != null ? (ActionResult) new OkObjectResult($"Hello, {name}") : new BadRequestObjectResult("Please pass a name on the query string or in the request body")); }
private void LabelInformation_TextChanged(object sender, EventArgs e) { LabelInformation.Refresh(); }