So I am using attribute routing for my controller like this:
[Route("last/{id:int}")]
public IHttpActionResult GetUpdateLast([FromUri] int id) {
return Ok();
}
Now I want to convert it to accept an array of integers, in the controller parameter I just switch to [FromUri] int id[]
with no problems, however, how do I switch the route attribute [Route("last/{id:int}")]
to make it accept an array of integers?