I have two routes:
routes.MapRoute(
"FetchVenue",
"venue/fetchlike/{q}",
new { controller = "venue", action = "fetchlike" }
);
routes.MapRoute(
"venue",
"venue/{venueId}",
new { controller = "Venue", action = "Index" }
);
The url /venue/fetchlike/test is passed to the correct controller The url /venue/fetchlike/?q=test is however passed to the index action.
I want to be able to pass data as a querystring.
What am I doing wrong?