I\'m using System.Web.Http.RouteAttribute and System.Web.Http.RoutePrefixAttribute to enable cleaner URLs for my Web API 2 application. For most of
System.Web.Http.RouteAttribute
System.Web.Http.RoutePrefixAttribute
I use FromUri attribute as solution
[Route("UsageAggregationDaily")] public async Task UsageAggregationDaily([FromUri] string userId = null, [FromUri] DateTime? startDate = null, [FromUri] DateTime? endDate = null)