I am passing two complex parameters to Web Api Post method and getting error "cant bind multiple parameters".I am using fiddler to test it and sending JSON string with composer.
Here is my JSON string.
{"agentEntity":[{"AgentID":"1","ClientID":"1"}],"userEntity":[{"ClientID":"1","UserID":"1"}]}
I have validated this string on JSONLint.com and it says OK.
When i write POST method with one parameter and pass below string then it works OK.
{"agentEntity":[{"AgentID":"1","ClientID":"1"}]}
My Web api Post method.
public OperationStatus Post(AgentEntity agentEntity, UserEntity userEntity)
{...
}
please help.