Esempio n. 1
0
 public User Update(User user)
 {
     _context.Attach(user).State = EntityState.Modified;
     _context.SaveChanges();
     return(user);
 }
Esempio n. 2
0
 public void Delete(Comment comment)
 {
     comment.Deleted = true;
     _context.Attach(comment).State = EntityState.Modified;
     _context.SaveChanges();
 }
Esempio n. 3
0
 public void Delete(Video video)
 {
     video.Deleted = true;
     _context.Attach(video).State = EntityState.Modified;
     _context.SaveChanges();
 }