LocalGovIMS_localgov-ims/src/Admin/Views/Shared/_Layout.cshtml
@using Web.Mvc.Navigation;
@{
    HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
    HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
    HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
    HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
    HttpContext.Current.Response.Cache.SetNoStore();
}
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex,nofollow">
    <title>@(ViewBag.Title ?? ViewBag.FormTitle) - @(System.Configuration.ConfigurationManager.AppSettings["Organisation.ShortName"])</title>
    
    <link rel="icon" href="@Url.Content("~/content/favicon.ico")" />

    @Styles.Render("~/Content/css")

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryunobtrusive")
    @Scripts.Render("~/bundles/lodash")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/accessible-autocomplete")

    <script type="text/javascript" language="javascript">
        rootUrl = "@Context.Request.Url.GetLeftPart(UriPartial.Authority)@Url.Content("~")";
    </script>
</head>

<body>

    <div class="container-fluid min-vh-100">
        <div class="row row-cols-1 row-cols-lg-2 min-vh-100">

            <div class="col-12 col-lg-2 col-xxxl-1 gx-0 nav-bar-wrapper" style="background-color:black">
                @{ Html.RenderPartial("_MainMenu"); }
            </div>

            <div class="col-12 col-lg-10 col-xxxl-11">
                <main>
                    @if (Request.IsAuthenticated)
                    {
                        <div class="d-flex flex-wrap-reverse page-header">
                            <div class="me-auto pt-2 pe-2 pb-2">
                                @{ Html.RenderPartial("_Breadcrumb", new NavigationManager().NavigationItems); }
                            </div>
                            <div class="order-lg-2 pt-2 pb-2">
                                @{ Html.RenderPartial("_Login"); }
                            </div>
                        </div>
                    }
                    @{ Html.RenderAction("GetSystemMessages", "Home");}
                    @RenderSection("Messages", required: false)
                    <div class="d-flex flex-wrap mb-3">
                        <div class="me-auto p-0">
                            @if (IsSectionDefined("Header"))
                            {
                                <h1>
                                    @RenderSection("Header", required: false)
                                </h1>
                            }
                            @if (IsSectionDefined("Subheader"))
                            {
                                <h2>
                                    @RenderSection("Subheader", required: false)
                                </h2>
                            }
                        </div>
                        <div class="order-lg-2 p-0">
                            @RenderSection("Actions", required: false)
                        </div>
                    </div>
                    <div class="pt-2 pb-2">
                        @RenderBody()
                    </div>
                </main>
            </div>
        </div>
    </div>

    @Scripts.Render("~/bundles/App/Core")
    @Scripts.Render("~/bundles/App/Shared")
    @RenderSection("scripts", required: false)

    <script type="text/javascript">
        $(document).ready(function () {
            $('#main-menu-toggle').on('click', function () {
                $('#main-menu').toggleClass('active');
            });
        });
    </script>
</body>
</html>