Exemplo n.º 1
0
        public virtual UserPermissionStateMergePatchedDto NewUserPermissionStateMergePatched(string permissionId)
        {
            var e   = new UserPermissionStateMergePatchedDto();
            var eId = NewUserPermissionEventId(permissionId);

            e.UserPermissionEventId = eId;
            return(e);
        }
Exemplo n.º 2
0
        public virtual UserPermissionStateMergePatchedDto ToUserPermissionStateMergePatchedDto(IUserPermissionStateMergePatched e)
        {
            var dto = new UserPermissionStateMergePatchedDto();

            dto.StateEventId            = new UserPermissionStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt               = e.CreatedAt;
            dto.CreatedBy               = e.CreatedBy;
            dto.Version                 = e.Version;
            dto.CommandId               = e.CommandId;
            dto.Active                  = e.Active;
            dto.IsPropertyActiveRemoved = e.IsPropertyActiveRemoved;

            return(dto);
        }