public ActionResult FindBystr(string shoushuo) { if (shoushuo == null || shoushuo.Trim() == "") { Admin_Index ai1 = new Admin_Index(1); return(PartialView("Goodtable", ai1)); } GoodsManager gm = new GoodsManager(); var da = gm.FindBystr(shoushuo).OrderByDescending(o => o.Goods_id).ToPagedList(1, 10); Admin_Index ai = new Admin_Index(1); ai.g = da; return(PartialView("Goodtable", ai)); }