public async Task RemoveNoteAsync() { if (SelectedNote == null || NotesCollection.Count <= 0) { return; } await Task.FromResult(NotesCollection.Remove(SelectedNote)); SelectedNote = NotesCollection.LastOrDefault(); }
public async Task AddNoteAsync() { NotesCollection.Add(new NoteModel()); await Task.FromResult(SelectedNote = NotesCollection.LastOrDefault()); }