public static ParaEntityList<Article> getArticles() { var articleQuery = new ArticleQuery(); articleQuery.RetrieveAllRecords = true; return Service.GetList<Article>(articleQuery); }
public static ParaEntityList<Article> getPublishedArticles() { var articleQuery = new ArticleQuery(); articleQuery.AddStaticFieldFilter(ArticleQuery.ArticleStaticFields.Published, ParaEnums.QueryCriteria.Equal, true); articleQuery.RetrieveAllRecords = true; return Service.GetList<Article>(articleQuery); }
public static ParaEntityList<Article> getArticlesByFolder(long folderID) { var articleQuery = new ArticleQuery(); articleQuery.AddStaticFieldFilter(ArticleQuery.ArticleStaticFields.Folders, ParaEnums.QueryCriteria.Equal, folderID.ToString()); articleQuery.RetrieveAllRecords = true; return Service.GetList<Article>(articleQuery); }
public static int getArticleCount() { var articleQuery = new ArticleQuery(); articleQuery.RetrieveAllRecords = true; articleQuery.TotalOnly = true; return Service.GetList<Article>(articleQuery).TotalItems; }