How can I get this simple route:
http://domain.com/Calendar/Unsubscribe/my@email.com
I have a route that looks like this:
routes.MapRoute(
"Unsubscribe",
"Calendar/Unsubscribe/{subscriber}",
new {
controller = "Calendar",
action = "Unsubscribe",
subscriber = "" }
);
and my action:
public ActionResult Unsubscribe(string subscriber)
{
...
}
Without any parameters, for example, http://domain.com/Calendar/Unsubscribe/is operating normally, but soon I add an e-mail, I get a page 404(
Is there any trick I have to do?
thank
source
share