Interface ILanguageService
Service to manage Language entries
public interface ILanguageService
Methods
AddLanguageAsync(Language)
Adds the given language
Task<Language> AddLanguageAsync(Language language)
Parameters
language
Language
Returns
DeleteLanguageAsync(int)
Deletes the given language
Task DeleteLanguageAsync(int languageId)
Parameters
languageId
int
Returns
EditLanguageAsync(Language)
Edits the given language
Task EditLanguageAsync(Language language)
Parameters
language
Language
Returns
GetLanguageAsync(int)
Returns the given language
Task<Language> GetLanguageAsync(int languageId)
Parameters
languageId
int
Returns
GetLanguagesAsync(int)
Returns a list of all available languages for the given Site
Task<List<Language>> GetLanguagesAsync(int siteId)
Parameters
siteId
int
Returns
GetLanguagesAsync(int, string)
Returns a list of all available languages for the given Site and package
Task<List<Language>> GetLanguagesAsync(int siteId, string packageName)