public virtual PicklistStateMergePatchedDto ToPicklistStateMergePatchedDto(IPicklistStateMergePatched e)
        {
            var dto = new PicklistStateMergePatchedDto();

            dto.PicklistEventId      = e.PicklistEventId;
            dto.CreatedAt            = e.CreatedAt;
            dto.CreatedBy            = e.CreatedBy;
            dto.CommandId            = e.CommandId;
            dto.Description          = e.Description;
            dto.FacilityId           = e.FacilityId;
            dto.ShipmentMethodTypeId = e.ShipmentMethodTypeId;
            dto.StatusId             = e.StatusId;
            dto.PicklistDate         = e.PicklistDate;
            dto.PickwaveId           = e.PickwaveId;
            dto.Active = e.Active;
            dto.IsPropertyDescriptionRemoved          = e.IsPropertyDescriptionRemoved;
            dto.IsPropertyFacilityIdRemoved           = e.IsPropertyFacilityIdRemoved;
            dto.IsPropertyShipmentMethodTypeIdRemoved = e.IsPropertyShipmentMethodTypeIdRemoved;
            dto.IsPropertyStatusIdRemoved             = e.IsPropertyStatusIdRemoved;
            dto.IsPropertyPicklistDateRemoved         = e.IsPropertyPicklistDateRemoved;
            dto.IsPropertyPickwaveIdRemoved           = e.IsPropertyPickwaveIdRemoved;
            dto.IsPropertyActiveRemoved = e.IsPropertyActiveRemoved;
            var picklistRoleEvents = new List <PicklistRoleStateCreatedOrMergePatchedOrRemovedDto>();

            foreach (var ee in e.PicklistRoleEvents)
            {
                PicklistRoleStateCreatedOrMergePatchedOrRemovedDto eeDto = PicklistRoleStateEventDtoConverter.ToPicklistRoleStateEventDto(ee);
                picklistRoleEvents.Add(eeDto);
            }
            dto.PicklistRoleEvents = picklistRoleEvents.ToArray();


            return(dto);
        }
        public virtual PicklistStateDeletedDto ToPicklistStateDeletedDto(IPicklistStateDeleted e)
        {
            var dto = new PicklistStateDeletedDto();

            dto.PicklistEventId = e.PicklistEventId;
            dto.CreatedAt       = e.CreatedAt;
            dto.CreatedBy       = e.CreatedBy;
            dto.CommandId       = e.CommandId;
            var picklistRoleEvents = new List <PicklistRoleStateRemovedDto>();

            foreach (var ee in e.PicklistRoleEvents)
            {
                PicklistRoleStateRemovedDto eeDto = PicklistRoleStateEventDtoConverter.ToPicklistRoleStateRemovedDto(ee);
                picklistRoleEvents.Add(eeDto);
            }
            dto.PicklistRoleEvents = picklistRoleEvents.ToArray();


            return(dto);
        }