.net MVC Foreach с индексом
@{int i = 0;}
@foreach (var item in myList)
{
@(i++;)
}
Spyder
@{int i = 0;}
@foreach (var item in myList)
{
@(i++;)
}