How do I get the last 3 items out of my list of images? I am using a foreach
loop so i can get a single image and access its properties such as the Url
for the img tag.
here is my code:
<div>
@foreach (var image in Model.Images)
{
<img src="@image.Url" class="ArticleMainImage" />
}
</div>