Stop exposing mapper in MapperContext
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
if (!(target is List<Language> list))
|
||||
throw new NotSupportedException($"{nameof(target)} must be a List<Language>.");
|
||||
|
||||
var temp = source.Select(context.Mapper.Map<ILanguage, Language>).ToList();
|
||||
var temp = source.Select(context.Map<ILanguage, Language>).ToList();
|
||||
|
||||
//Put the default language first in the list & then sort rest by a-z
|
||||
var defaultLang = temp.SingleOrDefault(x => x.IsDefault);
|
||||
|
||||
Reference in New Issue
Block a user