Exemple #1
0
        public static void InitTheme(this ControllerContext context)
        {
            var page = context.RequestContext.CurrentPage <ContentItem>()
                       ?? RouteExtensions.ResolveService <IUrlParser>(context.RouteData).Parse(context.HttpContext.Request["returnUrl"])
                       ?? context.RequestContext.StartPage();

            InitTheme(context, page);
        }
Exemple #2
0
 public static T ResolveService <T>(this HtmlHelper helper) where T : class
 {
     return(RouteExtensions.ResolveService <T>(helper.ViewContext.RouteData));
 }