コード例 #1
0
 public IEnumerable <object> GetWikiLinks(long CommunityId = 0)
 {
     return(Wiki.Find(x => x.CommunityId == 0 && !x.Deleted).OrderByDescending(x => x.Index).ThenBy(x => x.Title).Select(x => new { Id = x.Id, Name = x.Title, AuthRequired = x.AuthRequired, CommunityId = x.CommunityId, Index = x.Index }));
 }
コード例 #2
0
        public Wiki GetWiki(long CommunityId)
        {
            Wiki page = Wiki.Find(x => x.CommunityId == CommunityId && !x.Deleted && !x.AuthRequired).OrderByDescending(x => x.Index).FirstOrDefault();

            return(page);
        }
コード例 #3
0
 public IEnumerable <Wiki> GetWikiLinks(long CommunityId = 0)
 {
     return(Wiki.Find(x => x.CommunityId == CommunityId));
 }