Example #1
0
        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());
        }
Example #2
0
        /// <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());
        }