View で Dictionary にアクセスしようとしています。しかし、次の構文:
@{
var indexList = Viewbag.IndexList as Dictionary<int,long>;
}
動作しません: The name 'Viewbag' does not exist in the current context
PS: Viewbag の前に「@」を配置しようとしましたが、まだ動作しません。
誰かが助けることができますか?前もって感謝します