using System.Collections.Generic; using System.Linq; using AutoMapper; using Umbraco.Web.Models.ContentEditing; namespace Umbraco.Web.Models.Mapping { internal class PropertyGroupDisplayResolver where TSource : ContentTypeSave where TPropertyTypeDestination : PropertyTypeDisplay where TPropertyTypeSource : PropertyTypeBasic { public IEnumerable> Resolve(TSource source) { return source.Groups.Select(Mapper.Map>); } } }