Complex types with type converters are not resolved properly when evaluating matches. The following works:
void Get() {...}
void Get(int id) {...}
However if I change the second method to use a complex type with a type converter:
void Get() {...}
void Get(ObjectId id) {...}
then the server gives the following error:
"ExceptionMessage":"Multiple actions were found that match the request"
If I change the controller to only expose:
void Get(ObjectId id) {...}
then the type converter is correctly invoked.
Comments: We need to address scenario like this.
void Get() {...}
void Get(int id) {...}
However if I change the second method to use a complex type with a type converter:
void Get() {...}
void Get(ObjectId id) {...}
then the server gives the following error:
"ExceptionMessage":"Multiple actions were found that match the request"
If I change the controller to only expose:
void Get(ObjectId id) {...}
then the type converter is correctly invoked.
Comments: We need to address scenario like this.