public SiteGroupDto Map(SiteGroup entity)
 {
     return new SiteGroupDto
                {
                    Id = entity.Id,
                    ClientId = entity.ClientId,
                    Name = entity.Name
                };
 }
 public SiteGroupDto MapWithParent(SiteGroup entity)
 {
     return new SiteGroupDto
     {
         Id = entity.Id,
         ClientId = entity.ClientId,
         Name = entity.Name,
         Parent = new SiteStructureElementDtoMapper().Map(entity.Parent)
     };
 }
 public SiteGroupDto MapWithHasChildrenAndParent(SiteGroup entity, IEnumerable<long> childIdsThatCannotBecomeParent)
 {
     return new SiteGroupDto
                 {
                     Id = entity.Id,
                     ClientId = entity.ClientId,
                     Name = entity.Name,
                     HasChildren = entity.HasChildren,
                     Parent = entity.Parent != null ? new SiteStructureElementDtoMapper().Map(entity.Parent) : null,
                     ChildIdsThatCannotBecomeParent = childIdsThatCannotBecomeParent
                 };
 }