From f6e0873d83741e3af44c0506e0c1d15ae3d5f075 Mon Sep 17 00:00:00 2001 From: "DESKTOP-T0O5CDB\\DESK-555BD" Date: Thu, 31 Oct 2024 23:41:23 -0600 Subject: [PATCH] fix small screen spacing. --- Controllers/HomeController.cs | 13 ++++++++++--- Helper/StaticHelper.cs | 2 +- Views/Home/Kiosk.cshtml | 14 +++++++++++++- Views/Home/_Kiosk.cshtml | 26 +++++++++++++------------- 4 files changed, 37 insertions(+), 18 deletions(-) diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index f1e1e4c..d5bf7c5 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -55,9 +55,16 @@ namespace CarCareTracker.Controllers { return View(model: tab); } - public IActionResult Kiosk() - { - return View(); + public IActionResult Kiosk(string exceptions) + { + try { + var exceptionList = string.IsNullOrWhiteSpace(exceptions) ? new List() : exceptions.Split(',').Select(x => int.Parse(x)).ToList(); + return View(exceptionList); + } + catch (Exception ex) + { + return View(new List()); + } } public IActionResult KioskContent(List exceptionList) { diff --git a/Helper/StaticHelper.cs b/Helper/StaticHelper.cs index aaa1236..e49e99a 100644 --- a/Helper/StaticHelper.cs +++ b/Helper/StaticHelper.cs @@ -43,7 +43,7 @@ namespace CarCareTracker.Helper case "PastDue": return "Past Due"; default: - return input.ToString(); + return input; } } diff --git a/Views/Home/Kiosk.cshtml b/Views/Home/Kiosk.cshtml index 46a524e..57acb0b 100644 --- a/Views/Home/Kiosk.cshtml +++ b/Views/Home/Kiosk.cshtml @@ -1,6 +1,7 @@ @{ ViewData["Title"] = "Kiosk"; } +@model List
@@ -9,9 +10,20 @@