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

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

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