Esempio n. 1
0
        public void DuplicateNote(string noteId)
        {
            INote originalNote;

            if (repository.TryFind(noteId, out originalNote))
            {
                var duplicate = factory.CreateNewNoteFromExisting(originalNote);
                repository.AddOrUpdate(duplicate);

                OnNoteAdded(duplicate);
            }
        }