11.1.4.5 Displaying a Confirmation Message; Listing 11-12. Handling the ViewBag Message in the _AdminLayout.cshtml Fil

This commit is contained in:
Jason Zhu 2021-09-23 19:27:08 +10:00
parent c0b4f638f9
commit 9afd2e2cfd

View File

@ -14,6 +14,10 @@
</head>
<body>
<div>
@if (TempData["message"] != null)
{
<div class="alert alert-success">@TempData["message"]</div>
}
@RenderBody()
</div>
</body>