public int Delete(int id, byte[] timeStamp) { _db.Entry(new T() { Id = id, Timestamp = timeStamp }).State = EntityState.Deleted; return(SaveChanges()); }
public int Delete(T entity) { _db.Entry(entity).State = EntityState.Deleted; return(SaveChanges()); }