Class ControllerExtensions
Provides extension methods for the Controller class.
Inherited Members
Namespace: DataWeb.Mvc
Assembly: DataWeb.Core.dll
Syntax
public static class ControllerExtensions
Methods
GetCulture(Controller)
Gets the culture of the current request from the HttpContext.
Declaration
public static string GetCulture(this Controller controller)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller instance. |
Returns
Type | Description |
---|---|
string | The culture string or null if not found. |
GetLanguage(Controller)
Gets the language of the current request from the HttpContext.
Declaration
public static string GetLanguage(this Controller controller)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | The controller instance. |
Returns
Type | Description |
---|---|
string | The language string or null if not found. |