public static object CategoryNumber(object input, string categoryNumber) { var categoriesDrop = input as CategoriesDrop; if (categoriesDrop != null) { return(CategoryFunctions.CategoryNumber(categoriesDrop, categoryNumber)); } return(input); }
public static object TopLevel(object input, int pageSize) { var categoriesDrop = input as CategoriesDrop; if (categoriesDrop != null) { return(CategoryFunctions.TopLevel(categoriesDrop, pageSize)); } return(input); }
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); }
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); }