Exemple #1
0
 //method to add a note into the table
 public int AddNote(Note note)
 {
     context.Notes.Add(note);
     return(context.SaveChanges());
 }
 public int CreateLabel(Label labels)
 {
     context.Labels.Add(labels);
     return(context.SaveChanges());
 }
Exemple #3
0
 public int CreateNote(MyNote noteId)
 {
     Dbobj.MyNotes.Add(noteId);
     return(Dbobj.SaveChanges());
 }
Exemple #4
0
 public int CreatNote(Note Note)
 {
     context.Notes.Add(Note);
     return(context.SaveChanges());
 }
 public int CreateNotes(Note notes)
 {
     context.Notes.Add(notes);
     return(context.SaveChanges());
 }
Exemple #6
0
 public int CreateLabel(MyLabel labelId)
 {
     Dbobj.MyLabels.Add(labelId);
     return(Dbobj.SaveChanges());
 }
 //method to add a label into the table
 public int AddLabel(Label label)
 {
     context.Labels.Add(label);
     return(context.SaveChanges());
 }