@model IEnumerable @{ ViewData["Title"] = "Low Stock Products"; }

Products with Low Stock

@{ int i = 1; } @foreach (var item in Model) { @Html.Display(i++.ToString()) }
@Html.DisplayNameFor(model => model.FirstOrDefault().ProductStock.ProductId) Sale Price @Html.DisplayNameFor(model => model.FirstOrDefault().ProductStock.Stock)
@Html.DisplayFor(modelItem => i) @Html.DisplayFor(modelItem => item.ProductStock.ProductId) £@Html.DisplayFor(modelItem => item.Price.ProductPrice) @Html.DisplayFor(modelItem => item.ProductStock.Stock)