Interface IThemeService
Service to manage Theme entries
public interface IThemeService
Methods
CreateThemeAsync(Theme)
Creates a new theme
Task<Theme> CreateThemeAsync(Theme theme)
Parameters
theme
Theme
Returns
DeleteThemeAsync(string)
Deletes a theme
Task DeleteThemeAsync(string themeName)
Parameters
themeName
string
Returns
GetContainerControls(List<Theme>, string)
Returns a list of containers (ThemeControl) for a theme containing a specific theme control type
List<ThemeControl> GetContainerControls(List<Theme> themes, string themeControlType)
Parameters
Returns
GetLayoutControls(List<Theme>, string)
Returns a list of layouts (ThemeControl) from the given themes with a matching theme name
List<ThemeControl> GetLayoutControls(List<Theme> themes, string themeName)
Parameters
Returns
GetTheme(List<Theme>, string)
Returns a theme ThemeControls containing a specific theme control type
Theme GetTheme(List<Theme> themes, string themeControlType)
Parameters
Returns
GetThemeAsync(int, int)
Returns a specific theme
Task<Theme> GetThemeAsync(int themeId, int siteId)
Parameters
Returns
GetThemeControls(List<Theme>)
Returns a list of ThemeControls from the given themes
List<ThemeControl> GetThemeControls(List<Theme> themes)
Parameters
Returns
GetThemeControls(List<Theme>, string)
Returns a list of ThemeControls for a theme containing a specific theme control type
List<ThemeControl> GetThemeControls(List<Theme> themes, string themeControlType)
Parameters
Returns
GetThemeTemplatesAsync()
Returns a list of theme templates (Template)
Task<List<Template>> GetThemeTemplatesAsync()
Returns
GetThemesAsync()
Returns a list of available themes
Task<List<Theme>> GetThemesAsync()
Returns
UpdateThemeAsync(Theme)
Updates a existing theme
Task UpdateThemeAsync(Theme theme)
Parameters
theme
Theme