title: ASP.NET web-service with multiple parameters HttpPut
body: <p>I am trying to insert values in my database using <code>HttpPut</code> but I can't get it to work for multiple parameters.</p>
  
  <pre><code>// PUT: api/Orders/CustomerID/TableID
  [HttpPut("{CustomerID,TableID}")]
  public async Task&lt;IActionResult&gt; PutOrder([FromRoute] string CustomerID, [FromRoute] string TableID)
  {
      using (MySqlConnection connection = new MySqlConnection(ConnectionString))
      {
          try
          {
              string s = "INSERT INTO orders (CustomerID, TableID) VALUES (@CustomerID, @TableID)";
              MySqlCommand command = new MySqlCommand(s, connection);
              command.Parameters.AddWithValue("@CustomerID", CustomerID);
              command.Parameters.AddWithValue("@TableID", TableID);
              connection.Open();
  
              command.ExecuteNonQuery();
          }
          catch
          { }
          return NoContent();
      }
  }
  </code></pre>
  
  <p>Is there a way I can achieve this?</p>