Ejemplo n.º 1
0
        /// <summary>
        ///     Populate the asset list based on tier used later for sorting and returning
        ///     configs based on program type and tier
        /// </summary>
        private void UpdateAssetList(string configTier)
        {
            if (AssetTier == null)
            {
                AssetTier = ApiAssetSortedList.Where(t => t.tier == configTier)
                            .Select(t => t.tier)
                            .Distinct()
                            .ToList();
            }

            //for movies ensure value is "" as the api has no tier but a empty string
            if (!AssetTier.Any())
            {
                AssetTier.Add("");
            }
        }
Ejemplo n.º 2
0
 private void UpdateCategoryList(List <Image_Category> imageCategories)
 {
     ConfigImageCategories = imageCategories.Where(t => AssetTier.Contains(t.ImageTier.ToString()))
                             .OrderBy(p => p.PriorityOrder)
                             .ToList();
 }