public ActionResult AuditPrice(string type = "Tuhu") { ViewBag.Type = type; var list = BaoYangPriceGuideManager.SelectNeedAuditBaoYang(); if (string.Equals("Tuhu", type, StringComparison.OrdinalIgnoreCase)) { list = list?.Where(x => string.IsNullOrWhiteSpace(x.Type) || string.Equals(x.Type, type, StringComparison.OrdinalIgnoreCase)); } else { list = list?.Where(x => string.Equals(x.Type, type, StringComparison.OrdinalIgnoreCase)); } return(View(list)); }
public ActionResult AuditPrice() { return(View(BaoYangPriceGuideManager.SelectNeedAuditBaoYang())); }