The Operation Contract on the server is set up as follows:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "/RegisterOrganization", RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
void RegisterOrganization(Organization organization, User admin);
On the client-side, a resource named RegisterOrganization has been created:
var RegisterOrganization = $resource(baseUrlService.getBaseUrl() + 'REST/Organization.svc/RegisterOrganization');
The issue arises when attempting to pass two objects as parameters like this:
RegisterOrganization.save(organization,admin)
An error 500 is returned when doing so. Any suggestions on how to resolve this problem?