以下のような質問をいくつか見つけましたが、以前のバージョンの MVC のどこで見つけたのですか? MVC 4 には、このための新しいものがありますか?
MVC 3 コントローラー アクションのオプションのディクショナリ パラメーター
更新:将来の訪問者を支援するためのいくつかのコード
public class QueryStringDictionaryBinder : IModelBinder
{
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
{
var querystrings = controllerContext.HttpContext.Request.QueryString;
return querystrings.Cast<string>()
.Select(s => new { Key = s, Value = querystrings[s] })
.ToDictionary(p => p.Key, p => p.Value);
}
}