title: Mapping an array in asp.net Web API
body: <p>I'm trying to map up a controller function to my web api.</p>
  
  <pre><code>config.Routes.MapHttpRoute(
                name: "RPCRoutingApiCaseStudy",
                routeTemplate: "api/{controller}/{action}/{ServiceID}",
                defaults: new { ServiceID = RouteParameter.Optional }
                );
  </code></pre>
  
  <p>The issue is, in my controller, ServiceID is supposed to be an array. How can I set up my mapping to accept an array, and what would it look like? Sorry if that's an obvious question, but I'm very unfamiliar with this stuff and I'm trying to learn.</p>
  
  <p>I understand how to do it with a regular parameter, where like for int I'd type <code>url/api/controller/method/5</code></p>
  
  <p>I just don't know what to do for an array.</p>