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