After almost a year, together with MVC, I can confirm that I do not need the code for viewing even once. If you use code, you probably still consider WebForms. Throw it.
Only model data should be displayed in the view. Simple solutions, such as the CSS class to apply, can run directly in the view in server tags. More complex decisions should go to the controller or business logic.
user151323
source
share