MVC Razor @foreach

后端 未结 5 1716
半阙折子戏
半阙折子戏 2020-11-27 13:13

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

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 13:36

    a reply to @DarinDimitrov for a case where i have used foreach in a razor view.

提交回复
热议问题