Exemplo n.º 1
0
        /// <summary>
        /// 三级分类  综合 畅销 价格
        /// </summary>
        /// <param name="codeSort"></param>
        /// <returns></returns>
        public ActionResult DetailList(string codeSort)
        {
            //获取二级分类下的所有商品
            viewmode.Products = SortService.GetEntity(p => p.Code == codeSort).Products;
            //0  代表热销 查询二级分类下的所有商品中商品对应的图片表中的No为0的商品


            return(View(viewmode));
        }
Exemplo n.º 2
0
        public ActionResult Search_list(int code)
        {
            if (code == 0)
            {
                return(RedirectToAction("Index", "Home"));
            }

            homeviewmodel.Product     = SortService.GetEntity(s => s.Code == code).Products;
            homeviewmodel.ShoppingNum = ShoppingCartService.GetCount(s => s.CusId == (int)Session["Custid"]);
            return(View(homeviewmodel));
        }