ControllerExtensions.ControllerName Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

Overloads

ControllerName(ControllerContext) Gets the name of the current controller.
ControllerName(Type)

ControllerName(ControllerContext)

Gets the name of the current controller.

public static string ControllerName(this ControllerContext context)

Parameters

context
System.Web.Mvc.ControllerContext

Returns

string

ControllerName(Type)

public static string ControllerName(this Type controllerType)

Parameters

controllerType
System.Type

Returns

string