title: Postman using Put
body: <p>Trying to do Put using Postman, can't seems to figure it out:</p>
  
  <p>I have this method, which triggers a break point and everything is good:</p>
  
  <pre><code>public IHttpActionResult Put(User user)
  {
      // ... code ...
      return StatusCode(HttpStatusCode.NoContent);
  }
  </code></pre>
  
  <p>In a Postman:</p>
  
  <pre><code>url:          .../api/users/2 
  Headers(1):   Content-Type application/json, 
  Body: 
       {
            "id": "1",
            "login": "Test",
            "pass": "1"
        }
  </code></pre>
  
  <p>... the usual stuff, etc ...</p>
  
  <p>It works, but <strong>NOW</strong> I need to change the method to </p>
  
  <pre><code>public IHttpActionResult Put(int key, User user)
  {
      // ... code ...
      return StatusCode(HttpStatusCode.NoContent);
  }
  </code></pre>
  
  <p>I tried everything in a body of message using Postman, nothing makes it trigger the break-point. How do I have that key passed in along with user object???</p>
  
  <p>Needed to add [FromBody] also because my routeTemplate: "api/{controller}/{id}" is like this, I changed method definition from key to id, that way I can call Put using the following url .../api/users/3</p>