public void DelRecord(StorageInfo obj) { int rec = _records.FindIndex(x => obj.Equals(x.Storage)); if (rec >= 0) { Record rc = _records[rec]; rc.ReturnBookDate = DateTime.Now; _records.RemoveAt(rec); _archive.Add(rc); } }
public void DelRecord(StorageInfo obj) { int rec = _records.FindIndex(x => obj.Equals(x.Storage)); if (rec >= 0) { Record rc = _records[rec]; rc.ReturnBookDate = DateTime.Now; _records.RemoveAt(rec); _archive.Add(rc); } }