I usually make use of the Editor and Display templates when my model (or submodels) are List<T>
objects. This way I avoid to "spoil" my code with several foreach constructs.
I wanted to know whether there is any way to use Editor and Display templates when the model is a Dictionary<K,V>
object instead.
Thanks
Francesco
PS: answers with Razor are more appreciated