Пример #1
0
        public virtual OrderRoleStateRemovedDto NewOrderRoleStateRemoved(PartyRoleId partyRoleId)
        {
            var e   = new OrderRoleStateRemovedDto();
            var eId = NewOrderRoleEventId(partyRoleId);

            e.OrderRoleEventId = eId;
            return(e);
        }
Пример #2
0
        public virtual OrderRoleStateRemovedDto ToOrderRoleStateRemovedDto(IOrderRoleStateRemoved e)
        {
            var dto = new OrderRoleStateRemovedDto();

            dto.OrderRoleEventId = e.OrderRoleEventId;
            dto.CreatedAt        = e.CreatedAt;
            dto.CreatedBy        = e.CreatedBy;
            dto.Version          = e.Version;
            dto.CommandId        = e.CommandId;

            return(dto);
        }