Class CreateDictionaryController
Namespace: Umbraco.Cms.ManagementApi.Controllers.Dictionary
Assembly: Umbraco.Cms.ManagementApi.dll
Syntax
public class CreateDictionaryController : DictionaryControllerBase
Constructors
View SourceCreateDictionaryController(ILocalizationService, ILocalizedTextService, IOptionsSnapshot<GlobalSettings>, IBackOfficeSecurityAccessor, ILogger<CreateDictionaryController>)
Declaration
public CreateDictionaryController(ILocalizationService localizationService, ILocalizedTextService localizedTextService, IOptionsSnapshot<GlobalSettings> globalSettings, IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILogger<CreateDictionaryController> logger)
Parameters
Type | Name | Description |
---|---|---|
ILocalizationService | localizationService | |
ILocalizedTextService | localizedTextService | |
IOptionsSnapshot<GlobalSettings> | globalSettings | |
IBackOfficeSecurityAccessor | backofficeSecurityAccessor | |
ILogger<CreateDictionaryController> | logger |
Methods
View SourceCreate(DictionaryItemViewModel)
Creates a new dictionary item
Declaration
public async Task<ActionResult<int>> Create(DictionaryItemViewModel dictionaryViewModel)
Parameters
Type | Name | Description |
---|---|---|
DictionaryItemViewModel | dictionaryViewModel | The viewmodel to pass to the action |
Returns
Type | Description |
---|---|
Task<ActionResult<System.Int32>> | The |