From http://maproutes.codeplex.com/ :
[Url("store/{category?}")]
public ActionResult Products(string category)
{
return View();
}
'?' A sign at the end of the parameter {category?}indicates that it is optional. UrlParameter.Optionalwill be the default value for it.
source
share