I would like MVC to be able to handle the following two urls
in my AuthorController I have a method:
AuthorController.cs
public void Edit(int AuthorId) {
}
EditorController.cs
public void Edit(int EditorId) {
}
Is this possible, if so, how do I setup the route config to handle this?
This default route has "id" I want a more descriptive var name for each of the action.
I am able to get it to work. But wasn't sure if it is the best practice or the right method.
What I did is created two new entries in the route config to handle the different variations.