Interface ILanguageService
Contains methods for working with languages
Namespace: ImageVault.Common.Services
Assembly: ImageVault.Common.dll
Syntax
public interface ILanguageService : IService
Methods
Create(String)
Creates a language with the supplied languageCode
Declaration
Language Create(string languageCode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | languageCode | The languageCode of the language to create |
Returns
| Type | Description |
|---|---|
| Language | The created Language . If the language already exists, the existing Language is reused |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | If languageCode is null or an empty string. |
Delete(Int32)
Deletes a language by it's id
Declaration
void Delete(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | id |
GetAllLanguages()
Get all registered languages
Declaration
IList<Language> GetAllLanguages()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<Language> | A System.Collections.Generic.IList<> of all registered languages |