Esempio n. 1
0
 public void Delete()
 {
     if (!string.IsNullOrWhiteSpace(NoteId))
     {
         _deletedNote = NoteStorage.Delete(NoteId);
     }
 }
Esempio n. 2
0
        public void Delete()
        {
            Note = NoteStorage.Delete(NoteId);

            Check.DoEnsureLambda(Note != null, () => $"Note {NoteId} does not exist");

            NoteDeleted = true;
        }
Esempio n. 3
0
        public Note Delete(string noteId)
        {
            _changedNote = NoteStorage.Delete(noteId);

            _changeIsDeletion = true;

            return(_changedNote);
        }