Exemple #1
0
 public void DeleteNote(DiaryNoteDac note)
 {
     DbContext.Attach(note).State = EntityState.Deleted;
 }
Exemple #2
0
 public void UpdateDiaryNote(DiaryNoteDac note)
 {
     DbContext.Attach(note).State = EntityState.Modified;
 }
Exemple #3
0
 public async Task AddDiaryNote(DiaryNoteDac note)
 {
     await DbContext.AddAsync(note);
 }