It's for this reason I strongly prefer asp.net razor pages to MVC.
queue morpheus voice
What if I told you back in my day you could generally find the code by looking at the URL structure before this routing stuff became such a big deal?
imo razor pages hits the right balance. Generally speaking it's auto-routed based upon the URL, but you CAN hook into the routing in the razor page itself for fanciness for those few occasions where you need it.
Everyone always takes a good idea and runs too far with it, but I feel like the routing for razor pages pulls back to reasonableness.
queue morpheus voice
What if I told you back in my day you could generally find the code by looking at the URL structure before this routing stuff became such a big deal?
imo razor pages hits the right balance. Generally speaking it's auto-routed based upon the URL, but you CAN hook into the routing in the razor page itself for fanciness for those few occasions where you need it.
Everyone always takes a good idea and runs too far with it, but I feel like the routing for razor pages pulls back to reasonableness.