PDF + Bereit für Upload

This commit is contained in:
Simon Martens
2023-02-21 19:14:52 +01:00
parent 99693b0c1d
commit 5093951f7a
259 changed files with 145 additions and 84 deletions

View File

@@ -112,6 +112,14 @@ public class Briefecontroller : Controller {
model.Texts = texts;
if (System.IO.File.Exists("./wwwroot/pdf/HKB_" + id + ".pdf")) {
model.PDFFilePath = "/pdf/HKB_" + id + ".pdf";
}
if (System.IO.File.Exists("./wwwroot/pdf/HKB_" + model.MetaData.Meta.Sort.Year + ".pdf")) {
model.YearPDFFilePath = "/pdf/HKB_" + model.MetaData.Meta.Sort.Year + ".pdf";
}
// Return
return View("~/Views/HKB/Dynamic/Briefe.cshtml", model);
}