Example #1
0
 /// <summary>
 /// Constructor initializes custom action invoker
 /// </summary>
 public UmbracoController()
 {
     //this could be done by IoC but we really don't want people to have to create
     //the custom constructor each time they want to create a controller that extends this one.
     ActionInvoker          = new UmbracoActionInvoker(RoutableRequestContext);
     RoutableRequestContext = DependencyResolver.Current.GetService <IRoutableRequestContext>();
 }
Example #2
0
 /// <summary>
 /// Constructor initializes custom action invoker
 /// </summary>
 public UmbracoController(IRoutableRequestContext routableRequestContext)
 {
     ActionInvoker          = new UmbracoActionInvoker(RoutableRequestContext);
     RoutableRequestContext = routableRequestContext;
 }