public static void SetLayout(this ViewStartPage @this, Layouts layout) { @this.Layout = GetPath(layout); }
public static void SetLayout(this ViewStartPage @this, string layoutPath) { @this.Layout = layoutPath; }
public static void ScriptReference(this ViewStartPage page, params string[] resourceNames) { //Contract.Requires( page != null ); page.Html.ScriptReference(resourceNames.Select(rn => page.Resource(rn)).ToArray()); }