Exemplo n.º 1
0
        public ActionResult Index()
        {
            var           g1            = goodsmanager.GetHotGoods(9);
            var           g2            = goodsmanager.GetNewGoods(9);
            var           g3            = goodsmanager.ChunQiu(15);
            var           g4            = goodsmanager.Xia(15);
            var           g5            = goodsmanager.Dong(15);
            MallViewModel mallviewmodel = new MallViewModel();

            mallviewmodel.HotGoods = g1;
            mallviewmodel.NewGoods = g2;
            mallviewmodel.ChunQiu  = g3;
            mallviewmodel.Xia      = g4;
            mallviewmodel.Dong     = g5;
            return(View(mallviewmodel));
        }