From f8beb5ec3fa5fc945c1424abafc08731104859ee Mon Sep 17 00:00:00 2001 From: Per Ploug Date: Thu, 25 Jun 2015 10:09:55 +0200 Subject: [PATCH] Use IEnumerable instaed of List for fetching datatypes --- src/Umbraco.Web/Editors/DataTypeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Editors/DataTypeController.cs b/src/Umbraco.Web/Editors/DataTypeController.cs index cfbca2cdc5..b46013a8bb 100644 --- a/src/Umbraco.Web/Editors/DataTypeController.cs +++ b/src/Umbraco.Web/Editors/DataTypeController.cs @@ -116,7 +116,7 @@ namespace Umbraco.Web.Editors [UmbracoTreeAuthorize(Constants.Trees.DataTypes, Constants.Trees.Content, Constants.Trees.Media)] - public IDictionary> GetAllDataTypesAndEditors() + public IDictionary> GetAllDataTypesAndEditors() { var datadefs = Services.DataTypeService .GetAllDataTypeDefinitions(); @@ -130,7 +130,7 @@ namespace Umbraco.Web.Editors foreach (var unusedEditor in editors) datatypes.Add(Mapper.Map(unusedEditor)); - var grouped = datatypes.GroupBy(x => x.Group.ToLower()).ToDictionary(group => group.Key, group => group.ToList()); + var grouped = datatypes.GroupBy(x => x.Group.ToLower()).ToDictionary(group => group.Key, group => group.AsEnumerable()); return grouped; }