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

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