Exemple #1
0
 // Update the pre existing note.
 public int UpdateNote(Notes notes)
 {
     noteDbcontext.Entry(notes).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     return(noteDbcontext.SaveChanges());
 }
 // Update a specific label.
 public int UpdateLabel(Label label)
 {
     noteDbcontext.Entry(label).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     return(noteDbcontext.SaveChanges());
 }