public void OnUserRemove(ProcessUser removedUser) { RedoableCommands.Clear(); var removeCommand = new RemoveUserCommand(_userModelManager, removedUser); removeCommand.Execute(); UndoableCommands.Push(removeCommand); }
public void RemoveUser(ProcessUser removedUser) { RedoableCommands.Clear(); var removeCommand = new RemoveUserCommand(_contractManager, removedUser); removeCommand.Execute(); UndoableCommands.Push(removeCommand); }