Table of Contents

Class ThemeRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public class ThemeRepository : IThemeRepository
Inheritance
ThemeRepository
Implements

Constructors

ThemeRepository(MasterDBContext, IMemoryCache, ITenantManager, ISettingRepository, IServerStateManager)

public ThemeRepository(MasterDBContext context, IMemoryCache cache, ITenantManager tenants, ISettingRepository settings, IServerStateManager serverState)

Parameters

context MasterDBContext
cache IMemoryCache
tenants ITenantManager
settings ISettingRepository
serverState IServerStateManager

Methods

DeleteTheme(int)

public void DeleteTheme(int themeId)

Parameters

themeId int

FilterThemes(List<Theme>)

public List<Theme> FilterThemes(List<Theme> themes)

Parameters

themes List<Theme>

Returns

List<Theme>

GetTheme(int, int)

public Theme GetTheme(int themeId, int siteId)

Parameters

themeId int
siteId int

Returns

Theme

GetThemes()

public IEnumerable<Theme> GetThemes()

Returns

IEnumerable<Theme>

UpdateTheme(Theme)

public void UpdateTheme(Theme theme)

Parameters

theme Theme