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 @@