Exemplo n.º 1
0
        public static object Popular(object input, int pageSize, string lang)
        {
            var articlesDrop = input as KnowledgeArticlesDrop;

            if (articlesDrop != null)
            {
                return(KnowledgeArticleFunctions.Popular(articlesDrop, pageSize, lang));
            }

            return(input);
        }
Exemplo n.º 2
0
        public static object Recent(object input, int pageSize, string lang)
        {
            var articlesDrop = input as KnowledgeArticlesDrop;

            if (articlesDrop != null)
            {
                return(KnowledgeArticleFunctions.Recent(articlesDrop, pageSize, lang));
            }

            var categoriesDrop = input as CategoriesDrop;

            if (categoriesDrop != null)
            {
                return(CategoryFunctions.Recent(categoriesDrop, pageSize));
            }

            return(input);
        }