Click or drag to resize

IControllerStandardControllerName Property

Web controller name

Namespace:  SOWIWeb.Helper.Interface
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
string ControllerName { get; }

Property Value

Type: String
Examples
A example to read the controller name
/// <summary>
/// From controller context
/// </summary>
public string ControllerName
{
    get
    {
        return this.ControllerContext.RouteData.Values["controller"].ToString();
    }
}
See Also