public SpotlightGroupList(SpotlightGroup key, IEnumerable <SpotlightItemViewModel> items) : base(items) { Key = key; }
public static SpotlightGroupList Empty(SpotlightGroup key) { return(new SpotlightGroupList(key, Enumerable.Empty <SpotlightItemViewModel>())); }
internal static List <SpotlightGroupList> CreateGroupList(List <SpotlightItem> spotLightItems, SpotlightGroup selectedGroup) { return(new List <SpotlightGroupList> { new SpotlightGroupList(selectedGroup, spotLightItems.Where(sp => sp.Group == selectedGroup).Select(Create)), }); }