@model IEnumerable @{ ViewBag.Title = "Öğrenci Kantin Ürün Engelleme"; ViewBag.Modul = "Web Kantin Modülü"; ViewBag.ModulLink = "/OgrenciLer/Index"; Layout = "~/Views/Shared/Index.cshtml"; } @Html.Raw(ViewBag.MesajGoster)

Liste Filtreleme Seçenekleri

@Html.AntiForgeryToken()
@Html.DropDownList("OGRENCIID", ViewBag.OgrenciData as SelectList, String.Empty, new { @class = "select2-select-00 col-md-12 full-width-fix input-width-xlarge" })
@{ if (@Model.Any()) {

@ViewBag.Title

@foreach (var item in Model) { }
@Html.DisplayNameFor(model => model.MALZEME) @Html.DisplayNameFor(model => model.SATISFIYATI) @Html.DisplayNameFor(model => model.AKTIFMI)
@Html.DisplayFor(modelItem => item.MALZEME) @Html.DisplayFor(modelItem => item.SATISFIYATI) @{ if (string.IsNullOrEmpty(ViewBag.OGRENCIID)) { ViewBag.OGRENCIID = Request.QueryString["OGRENCIID"]; } if (item.AKTIFMI == "1") { İzin ver } if (item.AKTIFMI == "0") { Yasakla } }
} }