Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public ActionResult AuditPrice()
 {
     return(View(BaoYangPriceGuideManager.SelectNeedAuditBaoYang()));
 }