From c2c93a1a5bf5d5711cce2dd797d79087eb80a7d2 Mon Sep 17 00:00:00 2001 From: Per Ploug Date: Wed, 3 Jun 2015 15:09:19 +0200 Subject: [PATCH] removes unneeded tolists --- src/Umbraco.Web/Editors/ContentTypeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Editors/ContentTypeController.cs b/src/Umbraco.Web/Editors/ContentTypeController.cs index 6e86cd58c5..7cc4d37725 100644 --- a/src/Umbraco.Web/Editors/ContentTypeController.cs +++ b/src/Umbraco.Web/Editors/ContentTypeController.cs @@ -105,8 +105,8 @@ namespace Umbraco.Web.Editors /// public IEnumerable GetAll() { - var types = Services.ContentTypeService.GetAllContentTypes().ToList(); - var basics = types.Select(Mapper.Map).ToList(); + var types = Services.ContentTypeService.GetAllContentTypes(); + var basics = types.Select(Mapper.Map); foreach (var basic in basics) { basic.Name = TranslateItem(basic.Name);