DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ControllerExtensions

    Provides extension methods for the Controller class.

    Inheritance
    object
    ControllerExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In this article
    Back to top Generated by DocFX