From ca965d536278a4970ede0b88a92c6f218bfc5915 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 12 May 2021 10:16:49 +0300 Subject: Implemented a 404 not found page --- ExamTemplate/Web/Controllers/HomeController.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ExamTemplate/Web/Controllers/HomeController.cs') diff --git a/ExamTemplate/Web/Controllers/HomeController.cs b/ExamTemplate/Web/Controllers/HomeController.cs index f35cb1e..d9cfc45 100644 --- a/ExamTemplate/Web/Controllers/HomeController.cs +++ b/ExamTemplate/Web/Controllers/HomeController.cs @@ -24,5 +24,10 @@ namespace ExamTemplate.Web.Controllers { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } + + public IActionResult ErrorNotFound() + { + return View(); + } } } -- cgit v1.2.3