Пример #1
0
 // this is implementation of all the methods of IkeepNotes.
 // Create a new Note.
 public int CreateNote(Notes notes)
 {
     noteDbcontext.notes.Add(notes);
     return(noteDbcontext.SaveChanges());
 }
 // this is implementation of all the methods of IkeepNotes.
 // Create a new Label.
 public int CreateLabel(Label label)
 {
     noteDbcontext.labels.Add(label);
     return(noteDbcontext.SaveChanges());
 }