GetSiteContentComments() static private method

static private GetSiteContentComments ( CarrotCMSDataContext ctx, Guid siteID ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
return IQueryable
Ejemplo n.º 1
0
 public static int GetAllCommentCountBySite(Guid siteID)
 {
     using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
         return((from c in CannedQueries.GetSiteContentComments(_db, siteID)
                 select c).Count());
     }
 }
Ejemplo n.º 2
0
        public static List <PostComment> GetAllCommentsBySite(Guid siteID)
        {
            using (CarrotCMSDataContext _db = CarrotCMSDataContext.Create()) {
                IQueryable <PostComment> s = (from c in CannedQueries.GetSiteContentComments(_db, siteID)
                                              select new PostComment(c));

                return(s.ToList());
            }
        }