Merge branch 'master' of 10.0.0.83:/usr/local/git/SoftwayWeb
This commit is contained in:
commit
8cfe95ca87
@ -159,10 +159,16 @@ namespace SoftwayWeb.Controllers
|
|||||||
apiUrl = helper.GetStringValue("apiUrl");
|
apiUrl = helper.GetStringValue("apiUrl");
|
||||||
urlBase = apiUrl + "Giri/addGiro2";
|
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);
|
Uri baseAddress = new Uri(urlBase);
|
||||||
client = new HttpClient();
|
client = new HttpClient();
|
||||||
client.BaseAddress = baseAddress;
|
client.BaseAddress = baseAddress;
|
||||||
string data = JsonConvert.SerializeObject(g);
|
string data = JsonConvert.SerializeObject(gcv);
|
||||||
StringContent content = new StringContent(data, Encoding.UTF8, "application/json");
|
StringContent content = new StringContent(data, Encoding.UTF8, "application/json");
|
||||||
HttpResponseMessage response = client.PostAsync(baseAddress, content).Result;
|
HttpResponseMessage response = client.PostAsync(baseAddress, content).Result;
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user