Beispiel #1
0
 public IEnumerable <New> GetLastestNew(int top, int categoryID)
 {
     return(_newRepository.GetLastestNew().Where(x => x.NewCategoryID == categoryID || x.NewCategory.ParentID == categoryID).OrderByDescending(x => x.CreatedDate).Take(top));
 }