I've seen several similar questions (but none wrt to the ActionName attribute) and the answers (like this one) use Reflection. However, what it doesn't handle is if the action method has an [ActionName]
applied to it. So if we have something like
[ActionName('Profile')]
public virtual ActionResult AccountProfile(...)
I won't see the method name as Profile
but rather AccountProfile
when using similar code as shown in the linked solution. For our use case, that's no good.
We're currently using MVC5.