Exemple #1
0
 /// <summary>
 /// Implementation of Category Drop "Related"
 /// </summary>
 /// <param name="categoriesDrop">Categories Drop</param>
 /// <param name="categoryId">Category Id of Parent Category</param>
 /// <param name="pageSize">Results Page Size</param>
 /// <returns>IEnumerable collection of Category Drop</returns>
 public static IEnumerable <CategoryDrop> Related(CategoriesDrop categoriesDrop, Guid categoryId, int pageSize = 5)
 {
     return(new CategoriesDrop(categoriesDrop.PortalLiquidContext, categoriesDrop.Dependencies, pageSize).GetRelatedCategories(categoryId, pageSize));
 }
Exemple #2
0
 /// <summary>
 /// Implementation of Category Drop "Recent"
 /// </summary>
 /// <param name="categoriesDrop">Categories Drop</param>
 /// <param name="categoryNumber">Category Number</param>
 /// <returns>IEnumerable collection of Category Drop</returns>
 public static CategoryDrop CategoryNumber(CategoriesDrop categoriesDrop, string categoryNumber)
 {
     return(new CategoriesDrop(categoriesDrop.PortalLiquidContext, categoriesDrop.Dependencies).SelectByCategoryNumber(categoryNumber));
 }
Exemple #3
0
 /// <summary>
 /// Implementation of Category Drop "Recent"
 /// </summary>
 /// <param name="categoriesDrop">Categories Drop</param>
 /// <param name="pageSize">Results Page Size</param>
 /// <returns>IEnumerable collection of Category Drop</returns>
 public static IEnumerable <CategoryDrop> Recent(CategoriesDrop categoriesDrop, int pageSize = 5)
 {
     return(new CategoriesDrop(categoriesDrop.PortalLiquidContext, categoriesDrop.Dependencies, pageSize).Recent);
 }