Вот представление. < /P>
Код: Выделить всё
@model List
@{
// This variable is suppose to display current item out of all items (e.g. 26/500)
var index = 0;
}
(e.g. 26/500)
@(index + 1)/@Model.Count
//Some props to display from the model
@Model[index].Name
@Model[index].Definition
[img]@Model[index].ImagePath[/img]
Next
Previous
Подробнее здесь: https://stackoverflow.com/questions/794 ... collection