how to have minimum AreaRegistrations with putting duplicated elements in single place
Posted
by Sadegh
on Stack Overflow
See other posts from Stack Overflow
or by Sadegh
Published on 2010-05-27T19:01:09Z
Indexed on
2010/05/27
19:11 UTC
Read the original article
Hit count: 134
asp.net-mvc-2
|asp.net-mvc-areas
hi all, i have several AreaRegistration classes which one each registers own routes and each one have some duplicated elements such as bolded text in below:
context.MapRoute("Search", "**{culture}/{style}**/search",
new
{
**culture = cultureValue,
style = styleValue,**
controller = "search",
action = "default"
},
new
{
**culture = new CultureRouteConstraint(),
style = new StyleRouteConstraint()**
});
how i can have minimum AreaRegistrations with putting duplicated elements in single place which handles that? this is possible?
© Stack Overflow or respective owner