diff --git a/Controllers/DestinazioniController.cs b/Controllers/DestinazioniController.cs index c67373e..1a6d38d 100644 --- a/Controllers/DestinazioniController.cs +++ b/Controllers/DestinazioniController.cs @@ -400,33 +400,7 @@ namespace SoftwayWeb.Controllers //apiUrl = helper.GetStringValue("apiUrl"); - //urlBase = apiUrl + "ModificaGiro/addModgir"; - //baseAddress = new Uri(urlBase); - //client = new HttpClient(); - //client.BaseAddress = baseAddress; - //string data = JsonConvert.SerializeObject(mg); - //StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); - //HttpResponseMessage response2 = client.PostAsync(baseAddress, content).Result; - //if (response2.IsSuccessStatusCode) - //{ - - // return RedirectToAction("Index", "Destinazioni", new - // { - // id = model.serialeGiro, - // codAutista = model.CodAutistaOld, - // nomeAutista = model.AutistaOld, - // dataGiro = model.DataCarico, - // codMezzo = model.CodAutomezzoOld, - // desMezzo = model.DescAutomezzoOld - // }); - //} - //else - //{ - // errMes = response2.Content.ReadAsStringAsync().Result; - // helper.SetStringValue("errMsg", errMes); - // return RedirectToAction("Error"); - //} }