示例#1
0
        public virtual UserPermissionStateMergePatchedDto NewUserPermissionStateMergePatched(string permissionId)
        {
            var e   = new UserPermissionStateMergePatchedDto();
            var eId = NewUserPermissionEventId(permissionId);

            e.UserPermissionEventId = eId;
            return(e);
        }
示例#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);
        }