Skip the first three authors, then take 2.
⬇️ Result | Source ➡️
- George Akerlof
- Raphael Müller (not an author)
@inherits Custom.Hybrid.Razor14
@using System.Linq
@{
var persons = AsList(App.Data["Persons"]);
var books = AsList(App.Data["Books"]);
}
<ol>
@foreach (var person in persons.Skip(3).Take(2)) {
<li>@person.FirstName @person.LastName</li>
}
</ol>