@{ if(Context.Request.Path.StartsWithSegments("/Admin", StringComparison.OrdinalIgnoreCase)) Layout = "_AdminLayout"; else Layout = "_Layout"; }