6
Throughout the internet, I find posts warning about the responsibility of View
that should only take care of its name and display the content.
Although MVC is based on exactly the distribution of functions and separation of the application by layers, I would like to understand the aggravating factors of using the View
to perform some simple functions such as conditional.
Using the View
thus, there is some loss of performance or security vulnerability?
For example, in one of my applications I receive traffic values from the URL (id) via a ActionLink
and do a check on it for a conditional display of content. This would be a bad practice?
What about Where in lists? It’s right not to have this in View, right?
– Diego Zanardo
This @Diegozanardo is not good practice, already send the final information and in Views basic things!
– Maria