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