mccalltd/AttributeRouting — Issue #43: Difference between two GET AR and controller params
Author: Valamas
Created: 2012-02-07 23:14:08+00:00
State: open

I have the following AR (Example 1)
```
[GET("Gallery/_CenterImage/{?guid_Gallery}/{?slideShow}/{?currentController}/{?image}")]
public ActionResult _CenterImage(Guid? guid_Gallery, bool? slideShow, string currentController, string image)
```
Due to a javascript construction of the action like this:
```
var action_CenterImage = '@Url.Action(GalleryRoutes.RouteAction("", "Gallery", "_CenterImage"))'
.concat('/', guid_Gallery, '/False/', controller);
```
The action returns blank.

To rectify the problem, I create a AR like this. (Example 2)
```
[GET("Gallery/_CenterImage/{?guid_Gallery}/{?slideShow}/{?currentController}/{?image}", Order = 1)]
[GET("Gallery/_CenterImage", Order = 2)]
public ActionResult _CenterImage(Guid? guid_Gallery, bool? slideShow, string currentController, string image)
```

Are my nullable params incorrect because i thought the the first AR example would cater for both situations. Thanks