ASP.NET MVC: having one model for all views
I like the way model binding in django works: you send stuff that you need in a Json-like way: 'param1': val, 'param2': val In ASP.NET MVC you can't do it primarily because C# is a static language. You can use ViewData but it's ugly and not recommended. So I had to create dozens of ViewModels for every view: IndexViewModel, AboutViewModel, etc. And today I got an idea: why not just create one Model class and have Visual Studio generate all necessary fields? It's almost like in django. return View(new Model { Param1 = "asd", Param2 = "sdf" }); Param1 & Param2 are not members of the Model class,