I really struggle with that. I need a generic list parameter for my Get method, but it should be optional. I just did this:
public dynamic Get(List <long> ManufacturerIDs = null)
Unfortunately, at runtime I get an error message:
The optional parameter 'ManufacturerIDs' is not supported by 'FormatterParameterBinding'.
How to get a general list as an optional parameter here?
asp.net-mvc asp.net-web-api
Dennis Puzak Mar 26 '13 at 15:12 2013-03-26 15:12
source share