示例#1
0
        public ActionResult GetPosts(string contextPath, int skip, int pageSize, string rnd)
        {
            SetCurrentWorkspace(contextPath);
            var posts       = DataLayer.GetPostsForWorkspace(contextPath).Skip(skip).Take(pageSize).ToList();
            var postsMarkup = WallHelper.GetWallPostsMarkup(contextPath, posts);

            return(Json(postsMarkup, JsonRequestBehavior.AllowGet));
        }