How can I have this simple Route:
http://domain.com/Calendar/Unsubscribe/my@email.com
I have a route that looks like:
routes.MapRoute(
"Unsubscribe",
"Calendar/Unsubscribe/{subscriber}",
new {
controller = "Calendar",
action = "Unsubscribe",
subscriber = "" }
);
and my action is:
public ActionResult Unsubscribe(string subscriber)
{
...
}
Without any parameters, like http://domain.com/Calendar/Unsubscribe/
works fine, but soon I add the email, I get a 404
page :(
Is there any trick I have to do?
Thank you