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); }
public static T ResolveService <T>(this HtmlHelper helper) where T : class { return(RouteExtensions.ResolveService <T>(helper.ViewContext.RouteData)); }