public virtual AttributeSetInstanceExtensionFieldStateRemovedDto NewAttributeSetInstanceExtensionFieldStateRemoved(string index)
        {
            var e   = new AttributeSetInstanceExtensionFieldStateRemovedDto();
            var eId = NewAttributeSetInstanceExtensionFieldStateEventId(index);

            e.StateEventId = eId;
            return(e);
        }
        public virtual AttributeSetInstanceExtensionFieldStateRemovedDto ToAttributeSetInstanceExtensionFieldStateRemovedDto(IAttributeSetInstanceExtensionFieldStateRemoved e)
        {
            var dto = new AttributeSetInstanceExtensionFieldStateRemovedDto();

            dto.StateEventId = new AttributeSetInstanceExtensionFieldStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt    = e.CreatedAt;
            dto.CreatedBy    = e.CreatedBy;
            dto.Version      = e.Version;
            dto.CommandId    = e.CommandId;

            return(dto);
        }
        public virtual AttributeSetInstanceExtensionFieldGroupStateDeletedDto ToAttributeSetInstanceExtensionFieldGroupStateDeletedDto(IAttributeSetInstanceExtensionFieldGroupStateDeleted e)
        {
            var dto = new AttributeSetInstanceExtensionFieldGroupStateDeletedDto();

            dto.StateEventId = new AttributeSetInstanceExtensionFieldGroupStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt    = e.CreatedAt;
            dto.CreatedBy    = e.CreatedBy;
            dto.CommandId    = e.CommandId;
            var attributeSetInstanceExtensionFieldEvents = new List <AttributeSetInstanceExtensionFieldStateRemovedDto>();

            foreach (var ee in e.AttributeSetInstanceExtensionFieldEvents)
            {
                AttributeSetInstanceExtensionFieldStateRemovedDto eeDto = AttributeSetInstanceExtensionFieldStateEventDtoConverter.ToAttributeSetInstanceExtensionFieldStateRemovedDto(ee);
                attributeSetInstanceExtensionFieldEvents.Add(eeDto);
            }
            dto.AttributeSetInstanceExtensionFieldEvents = attributeSetInstanceExtensionFieldEvents.ToArray();


            return(dto);
        }