diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index beb56d6..d8c8318 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -31,11 +31,14 @@ namespace SoftwayWeb.Controllers 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 }); - //} + public FileResult Download(string file) + { + string app = ""; + byte[] fileBytes = System.IO.File.ReadAllBytes(file); + var response = new FileContentResult(fileBytes, "application/octet-stream"); + response.FileDownloadName = "appGesa.apk"; + return response; + } } } \ No newline at end of file diff --git a/Views/Destinazioni/Index.cshtml b/Views/Destinazioni/Index.cshtml index 287bb24..45b901e 100644 --- a/Views/Destinazioni/Index.cshtml +++ b/Views/Destinazioni/Index.cshtml @@ -22,6 +22,7 @@ Torna alla lista

+
Lista destinazioni
@@ -106,17 +107,17 @@ { int icasse = 0; icasse = Convert.ToInt32(item.Casse); - + @icasse } else { -   +   } @if (item.Trasf != null && item.Trasf > 0) { - + @Html.DisplayFor(modelItem => item.Trasf) } @@ -128,7 +129,7 @@ { int icolli = 0; icolli = Convert.ToInt32(item.Colli); - + @icolli } @@ -138,7 +139,7 @@ } @if (item.num_cons != null && item.num_cons > 0) { - + @Html.DisplayFor(modelItem => item.num_cons) } @@ -148,7 +149,7 @@ } @if (item.Uova != null && item.Uova > 0) { - + @Html.DisplayFor(modelItem => item.Uova) } @@ -158,7 +159,7 @@ } @if (item.Cist != null && item.Cist > 0) { - + @Html.DisplayFor(modelItem => item.Cist) } @@ -175,7 +176,7 @@ { diffBancali = item.ConsFatta.consFattaBanCar.Value - item.ConsFatta.consFattaBanSca.Value; - +

Ge.Sa. Trasporti S.r.l.

+
+   +
+
+ + nocons Download android app +
diff --git a/wwwroot/App/v1/softway-release_1.apk b/wwwroot/App/v1/softway-release_1.apk new file mode 100644 index 0000000..c06da00 Binary files /dev/null and b/wwwroot/App/v1/softway-release_1.apk differ diff --git a/wwwroot/images/Android.png b/wwwroot/images/Android.png new file mode 100644 index 0000000..2ff47a3 Binary files /dev/null and b/wwwroot/images/Android.png differ