I have controller/action:

```
public partial class MyControllerController : Controller {

  public virtual ActionResult Index(string name, string category, DateTime? from = null, DateTime? to = null)
  {
    // ...
  }
}

```

And I want that my URLs look like this:

```
/MyController/myname/mycategory
/MyController/myname/mycategory?from=10%2F01%2F2013%2000%3A00%3A00&to=10%2F31%2F2013%2023%3A59%3A59

```

I have tried following route registration:

```
routes.MapRoute(
  "MyRoutes",
  "MyController/{name}/{category}/",
  new
  {
    controller = "MyController",
    action = "Index",
    from = UrlParameter.Optional,
    to = UrlParameter.Optional
  });

```

It accepts incoming URL, but it is not generating correct outbound URL when using `Url.Action()` method. My `Url.Action()` always returns address like:

```
/CouponManager?name=myname&category=mycategory&from=08%2F01%2F2013%2000%3A00%3A00&to=08%2F31%2F2013%2023%3A59%3A59

```

Anybody can help ?