how to have minimum AreaRegistrations with putting duplicated elements in single place
- by Sadegh
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?