public ActionResult Index() { Sidebar(); var ds = bll.HotProducts(5); if (ds != null && ds.Rows.Count > 0) { //var list = PlasCommon.ToolClass<PlasModel.ProductViewModel>.ConvertDataTableToModel(ds); //ViewBag.HotList = list; } return(View()); }
/// <summary> /// 产品搜索 /// </summary> /// <returns></returns> public ActionResult PubSearch() { var ds = bll.HotProducts(5); if (ds != null && ds.Rows.Count > 0) { var list = PlasCommon.ToolClass <PlasModel.ProductViewModel> .ConvertDataTableToModel(ds); ViewBag.HotList = list; } return(PartialView()); }