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 })); }
public Wiki GetWiki(long CommunityId) { Wiki page = Wiki.Find(x => x.CommunityId == CommunityId && !x.Deleted && !x.AuthRequired).OrderByDescending(x => x.Index).FirstOrDefault(); return(page); }
public IEnumerable <Wiki> GetWikiLinks(long CommunityId = 0) { return(Wiki.Find(x => x.CommunityId == CommunityId)); }