Question

This has probably come before and is probably very subjective. I have been tols to avoid using ViewData and use a FromViewModel class to pass informaiton to the view istead.

Are there any major advantages of this approach?

Thanks

Davy

Was it helpful?

Solution

ViewData is not strong typed, whilst Models are. So Models are less error-prone and more clear.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top