Resvolution - DefaultRenderMvcControllerResolver

This commit is contained in:
Stephan
2016-08-23 10:53:07 +02:00
parent 3b46539c98
commit 784f290f7b
7 changed files with 32 additions and 70 deletions

View File

@@ -282,7 +282,7 @@ namespace Umbraco.Web.Mvc
if (requestContext == null) throw new ArgumentNullException("requestContext");
if (publishedContentRequest == null) throw new ArgumentNullException("publishedContentRequest");
var defaultControllerType = DefaultRenderMvcControllerResolver.Current.GetDefaultControllerType();
var defaultControllerType = Current.DefaultRenderMvcControllerType;
var defaultControllerName = ControllerExtensions.GetControllerName(defaultControllerType);
//creates the default route definition which maps to the 'UmbracoController' controller
var def = new RouteDefinition