Throughout the internet, I find posts warning you of the responsibility of View
who should only watch over your name and display content.
While understanding that MVC is based exactly on the distribution of functions and separation of the application by layers, I would like to understand the aggravating factors of using View
to perform some simple functions, such as conditionals.
Using View
in this way, is there any performance loss or security vulnerability?
For example, in one of my applications I get trafficked values from the URL (id) via a ActionLink
and check the content for a conditional view of content. Is this a bad practice?