public Reader RegReader(string readerName) { var reader = new Reader(); reader.Name = readerName; reader.RegistrationDate = DateTime.Now; Readers.Add(reader); return reader; }
public List<LibItem> GetReadingItems(Reader reader) { if (!ReadingItems.ContainsKey(reader)) { ReadingItems[reader] = new List<LibItem>(); } return ReadingItems[reader]; }
public void ReturnItem(Reader reader, LibItem item) { GetReadingItems(reader).Remove(item); }
public void TakeItem(Reader reader, LibItem item) { GetReadingItems(reader).Add(item); }