Beispiel #1
0
        /// <inheritdoc/>
        public ThemeModel FindThemeOrDefault(string themeId)
        {
            ThemeModel result = Themes.Find(item => string.Equals(item.Id, themeId));

            return(result ?? (result = Themes[DefaultTheme]));
        }
Beispiel #2
0
        /// <inheritdoc/>
        public ThemeModel FindThemeOrDefault(string themeId)
        {
            ThemeModel result = Themes.Find(item => string.Equals(item.Id, themeId));

            return((result != null) ? result : DefaultTheme);
        }