Skip to content

Instantly share code, notes, and snippets.

@thePunderWoman
Created February 15, 2013 22:20
Show Gist options
  • Save thePunderWoman/4964051 to your computer and use it in GitHub Desktop.
Save thePunderWoman/4964051 to your computer and use it in GitHub Desktop.
routes.MapRoute(
name: "Mount",
url: "HitchLookup/Mount/{mount}",
defaults: new { controller = "HitchLookup", action = "Mount", mount = "" }
);
routes.MapRoute(
name: "Year",
url: "HitchLookup/Mount/{mount}/Year/{year}",
defaults: new { controller = "HitchLookup", action = "Year", year = "", mount = "" }
);
routes.MapRoute(
name: "Make",
url: "HitchLookup/Mount/{mount}/Year/{year}/Make/{make}",
defaults: new { controller = "HitchLookup", action = "Make", year = "", make = "", mount = "" }
);
routes.MapRoute(
name: "Model",
url: "HitchLookup/Mount/{mount}/Year/{year}/Make/{make}/Model/{model}",
defaults: new { controller = "HitchLookup", action = "Model", year = "", make = "", model = "", mount = "" }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment