Following this page : http://blogs.msdn.com/b/webdev/archive/2013/10/17/attribute-routing-in-asp-net-mvc-5.aspx
These routes are supported:
[Route("users/{id:int}")]
public ActionResult GetUserById(int id) { . . . }
[Route("users/{id?}")]
public ActionResult GetUserById(int? id) { . . . }
But it seems that optional Nullabble< int > is not supported:
[Route("users/{id:int?}")]
public ActionResult GetUserById(int? id) { . . . }
Is there a way to use this ?