标签: c# asp.net-mvc razor
.net mvc剃刀视图为什么会发生此错误
控制器代码
ViewBag.LowStock = db.StockInformations.Where(x => x.Qty <= x.MinStockLevel);
查看代码
@{ List<StockInformation> DangerLavel = (List<StockInformation>)ViewBag.LowStock; var count = 0; ViewBag.Title = "Create"; }