Passing multiple Id parameter to Web Api GET or DELETE request
<p>I have a Bussiness Entity that is recognized by 2 Keys, for example:</p>

<pre><code>class UserItem {
    [Key]
    [Column(Order = 1)]
    public string UserId {get;set;}
    [Key]
    [Column(Order = 2)]
    public string ItemName {get; set;}
    public int Count {get; set;}    
}
</code></pre>

<p>Now using ASP.NET Web Api, how can I make an HTTP GET or HTTP DELETE to accept multiple parameters? Currently, the default generated template only accept 1 key:</p>

<pre><code>class ItemController : ApiController {
    .....

    //api/item/[key]
    [HttpGet]
    [ResponseType(typeof(UserItem))]
    public async Task&lt;IHttpActionResult&gt; GetUserItem(string id)
    {
        UserItem item = await db.useritems.FindAsync(id);
        ......
    }

    ......
}
</code></pre>

<p>db is my datacontext, i'm using EntityFramework 6 with ASP.NET Web Api 2</p>