The following code snippet enables you to access the name of the controller and the action that are processing the (current) request:
Controller: @ViewContext.Controller.ValueProvider.GetValue("controller").RawValue <br /> View: @ViewContext.Controller.ValueProvider.GetValue("action").RawValue |