Just one easy question about default parameter values in the routing.
If I have a route in global asax with the following data:
Name: "DetailPage"
Pattern:/{companytitle}/{departmenttitle}/{persontitle}
Controller="Person"
Action="Detail"
And I'm using the following helper in my views:
@(Url.RouteUrl("DetailPage",new{companytitle=Model.Companytitle, departmenttitle=Model.DepartmentTitle,persontitle=Model.PersonTitle}))
Lets imaging that property of the model DepartmentTitle is null, how I could set a default value in the Route?