<table class="table table-striped table-bordered table-hover"> <thead > <tr > <th class="text-center"> @Html.DisplayName("نام کالا") </th> <th class="text-center"> @Html.DisplayName("قیمت") </th> <th class="text-center"> @Html.DisplayName("تاریخ ثبت") </th> <th class="text-center"> @Html.DisplayName("توضیحات") </th> <th class="text-center"> @Html.DisplayName("تصویر") </th> </tr> </thead> <tbody> @foreach (var item in Model) { <tr > <td class="text-center"> @Html.DisplayFor(modelItem => item.ProductName) </td > <td class="text-center" > @Html.DisplayFor(modelItem => item.ProductPrice) </td> <td class="text-center" > @Html.DisplayFor(modelItem => item.ProductDate) </td> <td class="text-center" > @Html.DisplayFor(modelItem => item.ProductDescription) </td> <td class="text-center"> @Html.DisplayFor(modelitem => item.ProductImage) </td> <td class="text-center"> @Html.ActionLink("Edit", "Edit", new { id=item.ProductId }) | @Html.ActionLink("Details", "Details", new { id=item.ProductId }) | @Html.ActionLink("Delete", "Delete", new { id=item.ProductId }) </td> </tr> } </tbody> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)