removes unneeded tolists
This commit is contained in:
@@ -105,8 +105,8 @@ namespace Umbraco.Web.Editors
|
||||
/// <param name="contentId"></param>
|
||||
public IEnumerable<ContentTypeBasic> GetAll()
|
||||
{
|
||||
var types = Services.ContentTypeService.GetAllContentTypes().ToList();
|
||||
var basics = types.Select(Mapper.Map<IContentType, ContentTypeBasic>).ToList();
|
||||
var types = Services.ContentTypeService.GetAllContentTypes();
|
||||
var basics = types.Select(Mapper.Map<IContentType, ContentTypeBasic>);
|
||||
foreach (var basic in basics)
|
||||
{
|
||||
basic.Name = TranslateItem(basic.Name);
|
||||
|
||||
Reference in New Issue
Block a user