I heard that having @foreach inside of a view is a no-no. Meaning, the view should not have any logic in it. What is the best practice on where the logic for the @foreach sh
a reply to @DarinDimitrov for a case where i have used foreach in a razor view.
Category All @foreach(Category c in Model.Categories) { @c.Name }