public void UnDo(PersonMemento memento) { FirstName = memento.FirstName; LastName = memento.LastName; CellPhone = memento.CellPhone; Address = memento.Address; }
public void Add(PersonMemento memento) { _mementos.Push(memento); }