MVC Razor @foreach
What is the best practice on where the logic for the @foreach should be at? Nowhere, just get rid of it. You could use editor or display templates. So for example: could perfectly fine be replaced by a display template: and then you will define the corresponding display template (if you don’t like the default … Read more