// // 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()); }
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()); }
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")); }