Exemplo n.º 1
0
 /// <summary>
 /// Gets the sites featured post for the specified category name
 /// </summary>
 /// <param name="categoryName"></param>
 /// <returns></returns>
 public Post Featured(string categoryName)
 {
     return(Data.Featured(GetCategory(categoryName)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the sites featured post for the specified category Id
 /// </summary>
 /// <param name="categoryId"></param>
 /// <returns></returns>
 public Post Featured(int categoryId)
 {
     return(Data.Featured(new CategoryController().GetCachedCategory(categoryId, true)));
 }