@model List @{ bool? isClient = (bool?)ViewData["IsClient"]; } @if (Model != null && Model.Count > 0) { @if (!isClient.HasValue || (isClient.HasValue && !isClient.Value)) { } else { } @foreach (PesticideModel pest in Model) { @if (!isClient.HasValue || (isClient.HasValue && !isClient.Value)) { } }
@Html.Label(new PesticideModel().GetDisplayName(r => r.Date))@Html.Label(new PesticideModel().GetDisplayName(r => r.WaterRate)) @Html.Label(new PesticideModel().GetDisplayName(r => r.Delivery)) Pesticides (Type - Product - Application Rate (L/ha or g/ha))Pesticides (Type - Product)
@Html.DisplayFor(m => pest.Date)@Html.DisplayFor(m => pest.WaterRate) @Html.DisplayFor(m => pest.Delivery) @foreach (ProductModel ps in pest.Products) { @if (!isClient.HasValue || (isClient.HasValue && !isClient.Value)) { } }
@ps.Type @ps.Name@ps.ApplicationRate
} else { @Html.Label("None") }