Action method looks like
public virtual ActionResult Show(int productId, bool isValid, bool getByStoreId = false)
When I call this action I get url like
.../Product/Show/221?isValid=True&getByStoreId=True
But I want to display just
.../Product/Show/221
Does T4MVC has some shortcut for this?
routes.MapRoute(
"ProductsShow_Default",
"Product/{action}/{articleId}",
MVC.Product.Show()
);
By default, any parameters that you put in the
RouteValueDictionaryfor a link that are not contained in any route will by default be added to the query string. Your only way around not putting them in the query string is mapping a route for them, but they’re still going to be displayed in the URL.