GetWallPostsMarkup() 공개 정적인 메소드

public static GetWallPostsMarkup ( string contextPath, List posts ) : string
contextPath string
posts List
리턴 string
예제 #1
0
        public ActionResult GetPosts(string contextPath, int skip, int pageSize, string rnd)
        {
            var posts       = DataLayer.GetPostsForWorkspace(contextPath).Skip(skip).Take(pageSize).ToList();
            var postsMarkup = WallHelper.GetWallPostsMarkup(contextPath, posts);

            return(Json(postsMarkup, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public static string GetPosts(Content content, int skip, int pageSize, string rnd)
        {
            SetCurrentWorkspace(content.Path);
            var posts       = DataLayer.GetPostsForWorkspace(content.Path).Skip(skip).Take(pageSize).ToList();
            var postsMarkup = WallHelper.GetWallPostsMarkup(content.Path, posts);

            return(postsMarkup);
        }