Example #1
0
 public Reader RegReader(string readerName)
 {
     var reader = new Reader();
     reader.Name = readerName;
     reader.RegistrationDate = DateTime.Now;
     Readers.Add(reader);
     return reader;
 }
Example #2
0
        public List<LibItem> GetReadingItems(Reader reader)
        {
            if (!ReadingItems.ContainsKey(reader))
            {
                ReadingItems[reader] = new List<LibItem>();
            }

            return ReadingItems[reader];
        }
Example #3
0
 public void ReturnItem(Reader reader, LibItem item)
 {
     GetReadingItems(reader).Remove(item);
 }
Example #4
0
 public void TakeItem(Reader reader, LibItem item)
 {
     GetReadingItems(reader).Add(item);
 }