private async Task MoveCore(MoveAsset move, AssetOperation operation) { if (!move.OptimizeValidation) { await operation.MustMoveToValidFolder(move.ParentId); } if (!move.DoNotScript) { await operation.ExecuteMoveScriptAsync(move); } Move(move); }
private async Task CreateCore(CreateAsset create, AssetOperation operation) { if (!create.OptimizeValidation) { await operation.MustMoveToValidFolder(create.ParentId); } if (!create.DoNotScript) { await operation.ExecuteCreateScriptAsync(create); } if (create.Tags != null) { create.Tags = await operation.NormalizeTags(create.Tags); } Create(create); }