Esempio n. 1
0
 public Task AddAsync(Note note)
 {
     _noteContext.Notes.Add(note);
     return(_noteContext.SaveChangesAsync());
 }
Esempio n. 2
0
 public Task AddAsync(Note note)
 {
     //throw new NotImplementedException();
     context.Notes.Add(note);
     return(context.SaveChangesAsync());
 }