コード例 #1
0
 public NotificationComments Create(NotificationComments itemToCreate)
 {
     var comment = _context.NotificationComments.Add(itemToCreate);
     _context.SaveChanges();
     return comment;
 }
コード例 #2
0
 public NotificationComments Update(NotificationComments itemToUpdate)
 {
     _context.Entry(itemToUpdate).State = EntityState.Modified;
     return itemToUpdate;
 }
コード例 #3
0
 public void Delete(NotificationComments itemToDelete)
 {
     _context.NotificationComments.Remove(itemToDelete);
     _context.SaveChanges();
 }