Exemplo n.º 1
0
 public Note Get(int id)
 {
     using (NoteContext context = new NoteContext())
     {
         return(context.Note.SingleOrDefault(p => p.Id == id));
     }
 }
Exemplo n.º 2
0
 public List <Note> GetAll()
 {
     using (NoteContext context = new NoteContext())
     {
         return(context.Note.ToList());
     }
 }
Exemplo n.º 3
0
 public void Add(Note borcluFirma)
 {
     using (NoteContext context = new NoteContext())
     {
         context.Note.Add(borcluFirma);
         context.SaveChanges();
     }
 }
Exemplo n.º 4
0
 public void Update(Note borcluFirma)
 {
     using (NoteContext context = new NoteContext())
     {
     }
 }