Ejemplo n.º 1
0
        // GET: About
        public ActionResult Index()
        {
            //个人信息
            User user = AboutService.getUser();
            //6张照片
            List <Photos> photos = PhotosService.GetPhotos();

            ViewBag.A = user;
            ViewBag.B = photos;
            return(View());
        }
Ejemplo n.º 2
0
        // GET: Home文章列表页面
        public ActionResult Index(string keyboard)
        {   //文章列表
            List <UIData> list = HomeService.GetArticlesList("", keyboard);
            //个人信息
            User user = AboutService.getUser();
            //6张照片
            List <Photos> photos = PhotosService.GetPhotos();
            //分类和文章个数
            List <Classify> classList = HomeService.GetClassifyList();
            //推荐文章
            List <Articles> recomList = RecomService.GetRecomList();

            ViewBag.A = list;
            ViewBag.B = user;
            ViewBag.C = photos;
            ViewBag.D = classList;
            ViewBag.E = recomList;
            return(View(list));
        }