This is especially an issue for attribute routing:
[HttpGet("{id?}")]
public string Get(string id) { }
doesn't work unless you add a default value
[HttpGet("{id?}")]
public string Get(string id = null) { }
Comments: We decided to revert this fix in favor of bug https://aspnetwebstack.codeplex.com/workitem/1284
[HttpGet("{id?}")]
public string Get(string id) { }
doesn't work unless you add a default value
[HttpGet("{id?}")]
public string Get(string id = null) { }
Comments: We decided to revert this fix in favor of bug https://aspnetwebstack.codeplex.com/workitem/1284