public Boolean Update(OperationLog record) { if (record == null) { return(false); } var attached = OperationLogs.Attach(record); if (attached == null) { return(false); } Entry(attached).State = EntityState.Modified; return(SaveChanges() == 1); }
public Boolean Remove(OperationLog record) { if (record == null) { return(false); } var attached = OperationLogs.Attach(record); if (attached == null) { return(false); } OperationLogs.Remove(attached); return(SaveChanges() == 1); }