Slash in the ActionName attribute for MVC
<p>Is it possible to have a slash in the ActionName attribute in ASP MVC?</p>

<p>e.g. I would like a paths </p>

<pre><code>MyController/MyAction1
MyController/MyAction2/A
MyController/MyAction2/B
MyController/MyAction3
</code></pre>

<p>The reason for this is it mimics the navigation a user would use. But if I try to add the following to <code>MyController</code> it doesn't work.</p>

<pre><code>[ActionName("MyAction2/A")]
public ActionResults A() {...}
</code></pre>

<p>Obviously without the attribute it wouldn't work either.</p>

<p>I've tried changing my <code>RouteConfig.cs</code> to </p>

<pre><code>routes.MapRoute(
    name: "MyController",
    url: "MyController/MyAction2/{action}",
    defaults: new { controller = "MyController", action = "Index" }
);
</code></pre>

<p>But this affects all MyController paths. How can I get either a slash in the action name, or have the route config 'override' only come in to play when the action is MyAction2?</p>