public void Delete() { if (!string.IsNullOrWhiteSpace(NoteId)) { _deletedNote = NoteStorage.Delete(NoteId); } }
public void Delete() { Note = NoteStorage.Delete(NoteId); Check.DoEnsureLambda(Note != null, () => $"Note {NoteId} does not exist"); NoteDeleted = true; }
public Note Delete(string noteId) { _changedNote = NoteStorage.Delete(noteId); _changeIsDeletion = true; return(_changedNote); }