Class ControllerContextExtensions
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public static class ControllerContextExtensions
Methods
View SourceGetUmbracoContext(ControllerContext)
Gets the Umbraco context from a controller context hierarchy, if any, else the 'current' Umbraco context.
Declaration
public static UmbracoContext GetUmbracoContext(this ControllerContext controllerContext)
Parameters
Type | Name | Description |
---|---|---|
ControllerContext | controllerContext | The controller context. |
Returns
Type | Description |
---|---|
UmbracoContext | The Umbraco context. |