Beispiel #1
0
 public IEnumerable <ListItem> GetAllByCategory(ListItemCategoryType category)
 {
     return(_listItemRepository.GetAllByCategory(category));
 }
Beispiel #2
0
 public IEnumerable <ListItem> GetAllByCategory(ListItemCategoryType category)
 {
     return(CurrentSession.Query <ListItem>().Where(li => li.Category.Type == category));
 }