diff --git a/Controllers/GiriController.cs b/Controllers/GiriController.cs index 0830ebb..f0e9238 100644 --- a/Controllers/GiriController.cs +++ b/Controllers/GiriController.cs @@ -291,7 +291,7 @@ namespace SoftwayWeb.Controllers private List getAutisti() { SessionHelper helper = new SessionHelper(this); - + token = helper.GetStringValue("tok"); apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "Giri/listaAutisti"; @@ -329,6 +329,9 @@ namespace SoftwayWeb.Controllers private List getMezzi() { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "Giri/listaAutomezzi"; diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 737d11a..beb56d6 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -26,7 +26,16 @@ namespace SoftwayWeb.Controllers [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { - return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); + SessionHelper helper = new SessionHelper(this); + string e = helper.GetStringValue("errMsg"); + return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier, ErrMsg = e }); } + + //[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + //public IActionResult Error() + //{ + // return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); + //} + } } \ No newline at end of file diff --git a/Views/Giri/Create.cshtml b/Views/Giri/Create.cshtml index ca5459e..2f81794 100644 --- a/Views/Giri/Create.cshtml +++ b/Views/Giri/Create.cshtml @@ -64,6 +64,8 @@ @Html.ActionLink("Seleziona tutti", "Create", "Giri",new { sel = true }, null)   @Html.ActionLink("Deleziona tutti", "Create", "Giri",new { sel = false }, null) +   + Torna alla lista