public void AddUser() { RedoableCommands.Clear(); var addCommand = new AddUserCommand(_contractManager); addCommand.Execute(); UndoableCommands.Push(addCommand); }
public void OnUserAdd() { RedoableCommands.Clear(); var addCommand = new AddUserCommand(_userModelManager); addCommand.Execute(); FlipAccordionState(addCommand.GetUserId()); UndoableCommands.Push(addCommand); }