Exemplo n.º 1
0
        /// <summary>
        /// 一级分类
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            ViveViewModel viewmode = new ViveViewModel();

            viewmode.TopSorts = SortService.GetEntities(s => s.UpCode != null);
            return(View(viewmode));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            HomeViewModel homeViewModel = new HomeViewModel();

            homeViewModel.Sorts = SortService.GetEntities(s => true);
            return(View(homeViewModel));
        }
Exemplo n.º 3
0
        /// <summary>
        /// 二级分类
        /// </summary>
        /// <param name="upcode"></param>
        /// <returns></returns>
        public ActionResult ChiSort(string upcode)
        {
            ViveViewModel viewmode = new ViveViewModel();

            //Contains 匹配数据库中是否出现的字符  相当于模糊查询
            viewmode.LowSorts = SortService.GetEntities(r => r.Code.Contains(upcode));
            return(View(viewmode));
        }
Exemplo n.º 4
0
        public ActionResult Index()
        {
            List <Sort> Sorts = SortService.GetEntities(x => true).ToList();

            ViewBag.Sortresult = Sorts;

            var s = ProSortService.GetEntities(a => a.SortCode == Sorts[0].Code);

            ViewBag.s = s;
            return(View());
        }
Exemplo n.º 5
0
        // GET: Classify
        public ActionResult Index()
        {
            List <Sort> SortResult = SortService.GetEntities(x => true).ToList();

            ViewBag.Sort = SortResult.ToList();

            //var SortResult = SortService.GetEntities(x => true).ToList();
            //ViewBag.Sort = SortResult;


            //var ProSortResult = ProSortService.GetEntities(x => true).OrderByDescending(x => x.SortCode).Take(2);
            //ViewBag.ProSort = ProSortResult.ToList();

            //var ProSortResult = ProSortService.GetEntities(x => x.SortCode == SortResult[0].Code).ToList();
            //ViewBag.ProSort = ProSortResult;

            var s = ProSortService.GetEntities(x => x.SortCode == SortResult[0].Code);

            ViewBag.ProSort = s;
            return(View());
        }
Exemplo n.º 6
0
 public ActionResult ListProduct()
 {
     homeviewmodel.Sort        = SortService.GetEntities(s => true);
     homeviewmodel.ShoppingNum = ShoppingCartService.GetCount(s => s.CusId == (int)Session["Custid"]);
     return(View(homeviewmodel));
 }
 public ActionResult Classify()
 {
     homeViewModel.Sorts = SortService.GetEntities(b => true);
     return(View(homeViewModel));
 }