Declares an MVC action for a string argument passed to the ActionLink, RenderAction or Action methods, referencing an undeclared action.
From the context menus or via shortcuts:
If the controller referenced from the same method call is not declared, Declare Action is not available. Use the Declare Controller code provider instead.
<%: Html.ActionLink("Test", "TestAction", "Test")%>
//The following code is added to the TestController class:
public ActionResult MyAction()
'The following code is added to the TestController class:
Public Function MyAction() As ActionResult