@{ Layout = "/Views/Shared/_Layout.cshtml"; ViewBag.ShowMenu = ViewBag.ShowMenu ?? true; } @ViewData["MainTitle"] @if (ViewBag.ShowMenu) { @await Html.PartialAsync("_Nav") } @RenderBody() @section HeadScripts { @RenderSection("HeadScripts", required: false) } @section Scripts { @RenderSection("Scripts", required: false) }