// Umbraco.Code.MapAll -CreateDate -UpdateDate -DeleteDate private static void Map(UserGroupSave source, UserGroup target) { target.StartMediaId = source.StartMediaId; target.StartContentId = source.StartContentId; target.Icon = source.Icon; target.Alias = source.Alias; target.Name = source.Name; target.Permissions = source.DefaultPermissions; target.Key = source.Key; var id = GetIntId(source.Id); if (id > 0) { target.Id = id; } target.ClearAllowedSections(); if (source.Sections is not null) { foreach (var section in source.Sections) { target.AddAllowedSection(section); } } }