using System.Collections.Generic; namespace Notes.Models; public class Notes { public List notes { get; } public Notes() { var loadAll = Note.LoadAll(); this.notes = new List(loadAll); } public void Delete(Note note) { notes.Remove(note); note.Delete(); } }