Exemple #1
0
 public void Delete <T>(T entity) where T : class
 {
     _context.Remove(entity);
 }
Exemple #2
0
 public void Delete <T>(T item) where T : class
 {
     _context.Remove(item);
 }