Table of Contents

Interface ILanguageService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

Service to manage Language entries

public interface ILanguageService

Methods

AddLanguageAsync(Language)

Adds the given language

Task<Language> AddLanguageAsync(Language language)

Parameters

language Language

Returns

Task<Language>

DeleteLanguageAsync(int)

Deletes the given language

Task DeleteLanguageAsync(int languageId)

Parameters

languageId int

Returns

Task

EditLanguageAsync(Language)

Edits the given language

Task EditLanguageAsync(Language language)

Parameters

language Language

Returns

Task

GetLanguageAsync(int)

Returns the given language

Task<Language> GetLanguageAsync(int languageId)

Parameters

languageId int

Returns

Task<Language>

GetLanguagesAsync(int)

Returns a list of all available languages for the given Site

Task<List<Language>> GetLanguagesAsync(int siteId)

Parameters

siteId int

Returns

Task<List<Language>>

GetLanguagesAsync(int, string)

Returns a list of all available languages for the given Site and package

Task<List<Language>> GetLanguagesAsync(int siteId, string packageName)

Parameters

siteId int
packageName string

Returns

Task<List<Language>>