Create only one route for multiple actions with equal custom routes #744

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Reported on

E.g. This code results in two identical routes, when only one is needed.

[HttpGet] [CustomRoute(“{id}”)] public ActionResult Foo([FromRoute]string id) { … }

[HttpPost] [CustomRoute(“{id}”)] public ActionResult Foo([FromRoute]string id, Bar input) { … }

Commented on link

Fixed.

** Closed by maxtoroq 3/4/2012 6:32 PM

Commented on link
Commented on link

Fixed in changeset f228ba45d151265281bf6b17b8294aa1360c6cb8