From 092750f229f1629b5699d2e0bc742de5923a2e41 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Mon, 22 Jul 2024 16:47:50 +0200 Subject: [PATCH] ll --- Controllers/GiriController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index b99f99b..92ebe11 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -161,10 +161,16 @@ namespace SoftwayWeb.Controllers apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "Giri/addGiro2"; + GiriConsegnaView gcv=new GiriConsegnaView(); + gcv.CodAutista = g.CodAutista; + gcv.DataGiro=g.DataGiro; + gcv.CodMezzo = g.CodMezzo; + gcv.DataChiusura = DateTime.MinValue; + Uri baseAddress = new Uri(urlBase); client = new HttpClient(); client.BaseAddress = baseAddress; - string data = JsonConvert.SerializeObject(g); + string data = JsonConvert.SerializeObject(gcv); StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; if (response.IsSuccessStatusCode)