In ASP.NET MVC WebAPI project by default we have created following controller
public class ValuesController : ApiController { /
You could use attribute routing:
[Route("customers/{customerId}/orders")] public IEnumerable GetOrdersByCustomer(int customerId) { ... }
Some documentation to get you started:
http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2