I have this route:
routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}/{myparam}",
defaults: new { id = RouteParameter.Optional, myparam = RouteParameter.Optional }
);
'id' should be optional and 'myparam' should be optional aswell but 'id' must not be optional if 'myparam' is set. How can I configure this?