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:

image

 

Becomes:

 

image

 

Both work the same, however the second is just a little bit cleaner as you don’t need to go via ViewData…

3 thoughts on “ASP.net MVC RC1 – ViewData.Model becomes Model”

Leave a Reply

Your email address will not be published. Required fields are marked *