diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 9fd4a16..2a0cfac 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -47,6 +47,15 @@ namespace VirtualTask.Controllers return View(); } + public FileResult Download(string file) + { + string app = ""; + byte[] fileBytes = System.IO.File.ReadAllBytes(file); + var response = new FileContentResult(fileBytes, "application/octet-stream"); + response.FileDownloadName = "appTest.apk"; + return response; + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() diff --git a/Views/Home/VT_Read.cshtml b/Views/Home/VT_Read.cshtml index 52d96a6..6cb0687 100644 --- a/Views/Home/VT_Read.cshtml +++ b/Views/Home/VT_Read.cshtml @@ -4,4 +4,6 @@ }
Pagina in definizione
+ + + diff --git a/Views/Shared/_LayoutPortale.cshtml b/Views/Shared/_LayoutPortale.cshtml index 4b81365..eed5e3e 100644 --- a/Views/Shared/_LayoutPortale.cshtml +++ b/Views/Shared/_LayoutPortale.cshtml @@ -224,7 +224,7 @@ Purchase:Per la gestione degli interventi e il rilascio del buono in modo semplice ed intuitivo
- Leggi Altro + Download APP test