Esempio n. 1
0
        //
        // GET: /Blog/
        public ActionResult Index()
        {
            int pageIndex        = CECRequest.GetQueryInt("page", 1);
            int systemCategoryId = CECRequest.GetQueryInt("scatId", 0);
            var list             = BlogPostService.List(new BlogSearchSetting()
            {
                PageIndex        = pageIndex,
                SystemCategoryId = systemCategoryId
            });

            ViewBag.List = list;
            return(View());
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            int pageIndex = CECRequest.GetQueryInt("page", 1);

            var list = BlogPostService.List(new BlogSearchSetting()
            {
                PageIndex = pageIndex,
                UserId    = PlantEngContext.Current.UserId
            });

            ViewBag.BlogPostList = list;

            return(View());
        }
Esempio n. 3
0
        public ActionResult List()
        {
            int spaceId   = PlantEngContext.Current.ClientSpaceId;
            var spaceInfo = MemberService.Get(spaceId);

            int pageIndex = CECRequest.GetQueryInt("page", 1);

            var postList = BlogPostService.List(new BlogSearchSetting()
            {
                PageIndex = pageIndex,
                UserId    = spaceId
            });

            ViewBag.PostList  = postList;
            ViewBag.SpaceInfo = spaceInfo;
            return(View("List"));
        }