Beispiel #1
0
        public HttpResponseMessage GetMaterialDelivery(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = "PC243_MaterialDelivery/{webid}")] HttpRequest req,
            ILogger log, string webid)
        {
            log.LogInformation("PC243 Get task trigged");

            string materialDeliveryHTML = HtmlTemplate.GetPage(mdTableOps.QueryMaterialDeliveryOnWebid(webid, false).Result);

            Console.Write(materialDeliveryHTML);

            var response = new HttpResponseMessage(HttpStatusCode.OK);

            response.Content = new StringContent(materialDeliveryHTML);
            response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/html");
            return(response);
        }