Fix manage views layout

This commit is contained in:
Javier Calvarro Nelson 2018-01-22 14:44:44 -08:00
parent 5079f708e1
commit df4db2f49c
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,12 @@
@{
Layout = "/Areas/Identity/Pages/_Layout.cshtml";
if (ViewData.TryGetValue("ParentLayout", out var parentLayout))
{
Layout = (string)parentLayout;
}
else
{
Layout = "/Areas/Identity/Pages/_Layout.cshtml";
}
}
<h2>Manage your account</h2>

View File

@ -0,0 +1,7 @@
@{
if (Layout != "_Layout")
{
ViewData["ParentLayout"] = Layout;
Layout = "./_Layout.cshtml";
}
}