ASP.net MVC RC1 - ViewData.Model becomes Model
With RC1, the team has added a top-level property to access the Model for the page. As such:
Becomes:
Both work the same, however the second is just a little bit cleaner as you don’t need to go via ViewData…
Labels: ASP.net MVC






Blogger comments
http://twitter.com/elijahmanor
http://zi.ma/webdev
i've read more on ITJOBLOG, may be you could have a look..
http://www.itjoblog.co.uk/2009/03/aspnet-mvc-rescues-microsofts.html
i've read more on ITJOBLOG, may be you could have a look..
http://www.itjoblog.co.uk/2009/03/aspnet-mvc-rescues-microsofts.html