Michele: destinazioni controller - modifica data parametro api
This commit is contained in:
parent
375836028f
commit
023e91feb2
@ -30,28 +30,27 @@ namespace SoftwayWeb.Controllers
|
|||||||
helper = new SessionHelper(this);
|
helper = new SessionHelper(this);
|
||||||
token = helper.GetStringValue("tok");
|
token = helper.GetStringValue("tok");
|
||||||
|
|
||||||
//StringBuilder aut = new StringBuilder();
|
|
||||||
string autista = string.Empty;
|
string autista = string.Empty;
|
||||||
string dataGi = string.Empty;
|
string dataGi = string.Empty;
|
||||||
string mezzo = string.Empty;
|
string mezzo = string.Empty;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(codAutista))
|
if (!string.IsNullOrEmpty(codAutista))
|
||||||
{
|
{
|
||||||
helper.SetStringValue("codAutista", codAutista);
|
helper.SetStringValue("codAutista", codAutista.TrimEnd());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string aut = helper.GetStringValue("codAutista");
|
string aut = helper.GetStringValue("codAutista");
|
||||||
codAutista = aut;
|
codAutista = aut.TrimEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(codMezzo))
|
if (!string.IsNullOrEmpty(codMezzo))
|
||||||
{
|
{
|
||||||
helper.SetStringValue("codMezzo", codMezzo.ToString());
|
helper.SetStringValue("codMezzo", codMezzo.TrimEnd());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string mez = helper.GetStringValue("codMezzo");
|
string mez = helper.GetStringValue("codMezzo").TrimEnd();
|
||||||
codMezzo = mez;
|
codMezzo = mez;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +65,7 @@ namespace SoftwayWeb.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
urlBase = apiUrl + "Giri/listaDestinazioniByAutistaDataMezzo";
|
urlBase = apiUrl + "Giri/listaDestinazioniByAutistaDataMezzo";
|
||||||
urlBase = urlBase + "?autista=" + codAutista.TrimEnd() + "&dataGiro=" + dataGi + "&mezzo=" + codMezzo;
|
urlBase = urlBase + "?autista=" + codAutista + "&dataGiro=" + dataGi + "&mezzo=" + codMezzo;
|
||||||
Uri baseAddress = new Uri(urlBase);
|
Uri baseAddress = new Uri(urlBase);
|
||||||
client = new HttpClient();
|
client = new HttpClient();
|
||||||
client.BaseAddress = baseAddress;
|
client.BaseAddress = baseAddress;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user