@{ if(ViewData.TryGetValue("ParentLayout", out var parentLayout)) { Layout = (string)parentLayout; } }