In this For loop count is not increasing – Asp.net
<tbody> @foreach (var item in Model) { int count = 1; <tr> <td>@count</td> <td>@item.ProductName</td> <td> @Html.ActionLink("Edit", "ProductEdit", new { productId = item.ProductId }) </td> </tr> count = count + 1; } </tbody> This code is to display the products in…