From 9afd2e2cfd98e7a3ed09c1ec04a94b0a86b91b65 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 23 Sep 2021 19:27:08 +1000 Subject: [PATCH] =?UTF-8?q?11.1.4.5=20Displaying=20a=20Confirmation=20Mess?= =?UTF-8?q?age;=20Listing=2011-12.=C2=A0Handling=20the=20ViewBag=20Message?= =?UTF-8?q?=20in=20the=20`=5FAdminLayout.cshtml`=20Fil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SportsStore.WebUI/Views/Shared/_AdminLayout.cshtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SportsStore/SportsStore.WebUI/Views/Shared/_AdminLayout.cshtml b/SportsStore/SportsStore.WebUI/Views/Shared/_AdminLayout.cshtml index ffb11f4..e20875f 100644 --- a/SportsStore/SportsStore.WebUI/Views/Shared/_AdminLayout.cshtml +++ b/SportsStore/SportsStore.WebUI/Views/Shared/_AdminLayout.cshtml @@ -14,6 +14,10 @@
+ @if (TempData["message"] != null) + { +
@TempData["message"]
+ } @RenderBody()