예제 #1
0
 public void DeleteUser(User user)
 {
     _context.Remove(user);
     SaveChanges();
 }
예제 #2
0
 public void DeleteNews(News news)
 {
     _context.Remove(news);
     SaveChanges();
 }