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
+