public void Delete(T entity) { _context.Remove(entity); Save(); }
public void Delete <T>(T entity) where T : class { _context.Remove(entity); _context.SaveChanges(); }