public virtual PicklistBinStateMergePatchedDto ToPicklistBinStateMergePatchedDto(IPicklistBinStateMergePatched e)
        {
            var dto = new PicklistBinStateMergePatchedDto();

            dto.PicklistBinEventId    = e.PicklistBinEventId;
            dto.CreatedAt             = e.CreatedAt;
            dto.CreatedBy             = e.CreatedBy;
            dto.CommandId             = e.CommandId;
            dto.PicklistId            = e.PicklistId;
            dto.BinLocationNumber     = e.BinLocationNumber;
            dto.PrimaryOrderId        = e.PrimaryOrderId;
            dto.PrimaryShipGroupSeqId = e.PrimaryShipGroupSeqId;
            dto.Active = e.Active;
            dto.IsPropertyPicklistIdRemoved            = e.IsPropertyPicklistIdRemoved;
            dto.IsPropertyBinLocationNumberRemoved     = e.IsPropertyBinLocationNumberRemoved;
            dto.IsPropertyPrimaryOrderIdRemoved        = e.IsPropertyPrimaryOrderIdRemoved;
            dto.IsPropertyPrimaryShipGroupSeqIdRemoved = e.IsPropertyPrimaryShipGroupSeqIdRemoved;
            dto.IsPropertyActiveRemoved = e.IsPropertyActiveRemoved;
            var picklistItemEvents = new List <PicklistItemStateCreatedOrMergePatchedOrRemovedDto>();

            foreach (var ee in e.PicklistItemEvents)
            {
                PicklistItemStateCreatedOrMergePatchedOrRemovedDto eeDto = PicklistItemStateEventDtoConverter.ToPicklistItemStateEventDto(ee);
                picklistItemEvents.Add(eeDto);
            }
            dto.PicklistItemEvents = picklistItemEvents.ToArray();


            return(dto);
        }
        public virtual PicklistBinStateDeletedDto ToPicklistBinStateDeletedDto(IPicklistBinStateDeleted e)
        {
            var dto = new PicklistBinStateDeletedDto();

            dto.PicklistBinEventId = e.PicklistBinEventId;
            dto.CreatedAt          = e.CreatedAt;
            dto.CreatedBy          = e.CreatedBy;
            dto.CommandId          = e.CommandId;
            var picklistItemEvents = new List <PicklistItemStateRemovedDto>();

            foreach (var ee in e.PicklistItemEvents)
            {
                PicklistItemStateRemovedDto eeDto = PicklistItemStateEventDtoConverter.ToPicklistItemStateRemovedDto(ee);
                picklistItemEvents.Add(eeDto);
            }
            dto.PicklistItemEvents = picklistItemEvents.ToArray();


            return(dto);
        }