public Note Get(int id) { using (NoteContext context = new NoteContext()) { return(context.Note.SingleOrDefault(p => p.Id == id)); } }
public List <Note> GetAll() { using (NoteContext context = new NoteContext()) { return(context.Note.ToList()); } }
public void Add(Note borcluFirma) { using (NoteContext context = new NoteContext()) { context.Note.Add(borcluFirma); context.SaveChanges(); } }
public void Update(Note borcluFirma) { using (NoteContext context = new NoteContext()) { } }