Example #1
0
        //查询推荐信息
        public ActionResult tuijian()
        {
            //查询推荐商品信息
            var GetPro = ProService.GetEntities(x => true).OrderByDescending(x => x.IsHot).Take(1);

            ViewBag.Pro = GetPro.ToList();
            return(PartialView());
        }
Example #2
0
        public ActionResult seachHtml1()
        {
            string seach    = Request["seach"];
            string sea      = "%seach%";
            var    seachAll = ProService.GetEntities(x => x.Name == sea);

            return(Content(seachAll.Count().ToString()));
        }
Example #3
0
        //查询热销信息
        public ActionResult HotSell()
        {
            //查询热销商品信息 WxShop_Model Fish_Model
            var GetPro = ProService.GetEntities(x => x.IsHot = true).Take(3);

            ViewBag.Pro = GetPro.ToList();
            return(PartialView());
        }