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