removes unneeded tolists

This commit is contained in:
Per Ploug
2015-06-03 15:09:19 +02:00
parent d62ae17f05
commit c2c93a1a5b

View File

@@ -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);