Example #1
0
        public ActionResult Head(RenderingActionArgs args)
        {
            var model = _modelBuilder.Build(args.RenderingContextItem,
                                            ThemeResourceLocationIDs.Head,
                                            new ID(args.PageContext.Device.Id),
                                            SiteScriptsFieldNames.SiteHeadScript,
                                            PageScriptsFieldNames.PageHeadScript);

            return(View(model));
        }
        public ActionResult Head(Item pageContextItem, PageContext pageContext)
        {
            var model = _modelBuilder.Build(pageContextItem, OptionLists.ResourceLocations.Head, new ID(pageContext.Device.Id));

            return(View(model));
        }