From 1283b138695cc333739cce4451da507d4e31bd13 Mon Sep 17 00:00:00 2001 From: the Date: Fri, 19 May 2023 19:38:08 +0400 Subject: [PATCH] fix 3 --- .../Controllers/HomeController.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ComputerShopProvider/ComputerShopClientApp/Controllers/HomeController.cs b/ComputerShopProvider/ComputerShopClientApp/Controllers/HomeController.cs index cef2760..4444081 100644 --- a/ComputerShopProvider/ComputerShopClientApp/Controllers/HomeController.cs +++ b/ComputerShopProvider/ComputerShopClientApp/Controllers/HomeController.cs @@ -147,6 +147,17 @@ namespace ComputerShopClientApp.Controllers } } + [HttpGet] + public IActionResult GetWordFile() + { + return new PhysicalFileResult("F:\\ReportsCourseWork\\wordfile.docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"); + } + + public IActionResult GetExcelFile() + { + return new PhysicalFileResult("F:\\ReportsCourseWork\\excelfile.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + } + [HttpGet] public IActionResult Enter() {