Ejemplo n.º 1
0
        public static object CategoryNumber(object input, string categoryNumber)
        {
            var categoriesDrop = input as CategoriesDrop;

            if (categoriesDrop != null)
            {
                return(CategoryFunctions.CategoryNumber(categoriesDrop, categoryNumber));
            }

            return(input);
        }
Ejemplo n.º 2
0
        public static object TopLevel(object input, int pageSize)
        {
            var categoriesDrop = input as CategoriesDrop;

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

            return(input);
        }
Ejemplo n.º 3
0
        public static object Related(object input, string categoryIdString, int pageSize)
        {
            var  categoriesDrop = input as CategoriesDrop;
            Guid categoryId;

            if (categoriesDrop != null && Guid.TryParse(categoryIdString, out categoryId))
            {
                return(CategoryFunctions.Related(categoriesDrop, categoryId, pageSize));
            }

            return(input);
        }
Ejemplo n.º 4
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);
        }