ASP.NET Web Api - multiple params 500 error
<p>' trying to make an web api controller with two parameters: one model object and string.</p>

<pre><code>public string AddDevice(Device device, [FromBody] string userName)
{
    // Some operations here               
}
</code></pre>

<p>When I try it with one parameter on fiddler:
For Device object (body request):</p>

<pre><code>{
    "DeviceName":"name,
    "StolenFlag":false
}
</code></pre>

<p>For string "[FromBody] string userName" (body request):</p>

<pre><code>"userName"
</code></pre>

<p>It works fine. I just do not know how to make this method works with those two parameters. When I try connecting request body on fiddler like that:</p>

<pre><code>{
    "DeviceName":"name,
    "StolenFlag":false
}
"userName"
</code></pre>

<p>I get an 500 error. It means, that server finds correct controller method but can't handle request. Any ideas?</p>