Refactor DomainHelper

This commit is contained in:
Stephan
2018-04-26 16:03:08 +02:00
parent 9407f75522
commit dbf1b1e0d4
28 changed files with 493 additions and 375 deletions

View File

@@ -312,6 +312,33 @@ namespace Umbraco.Core.Services.Implement
}
}
/// <inheritdoc />
public string GetLanguageIsoCodeById(int id)
{
using (ScopeProvider.CreateScope(autoComplete: true))
{
return _languageRepository.GetIsoCodeById(id);
}
}
/// <inheritdoc />
public string GetDefaultLanguageIsoCode()
{
using (ScopeProvider.CreateScope(autoComplete: true))
{
return _languageRepository.GetDefaultIsoCode();
}
}
/// <inheritdoc />
public int? GetDefaultLanguageId()
{
using (ScopeProvider.CreateScope(autoComplete: true))
{
return _languageRepository.GetDefaultId();
}
}
/// <summary>
/// Gets all available languages
/// </summary>