From 507c0364d3b362b0ee0e227b1ad4537f5d4f9a0d Mon Sep 17 00:00:00 2001 From: alibw Date: Wed, 11 Jun 2025 17:05:59 +0330 Subject: [PATCH] Changed deserialize type to DataTable --- PdfService/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PdfService/Program.cs b/PdfService/Program.cs index 845c0f3..62a9446 100644 --- a/PdfService/Program.cs +++ b/PdfService/Program.cs @@ -1,3 +1,4 @@ +using System.Data; using Microsoft.AspNetCore.WebUtilities; using Newtonsoft.Json; using PdfService; @@ -32,7 +33,7 @@ app.MapPost("/Print", async (HttpContext context) => { if (part.ContentType == "application/json") { - data = JsonConvert.DeserializeObject(part.Content); + data = JsonConvert.DeserializeObject(part.Content); } else if (part.ContentType == "application/xml") {