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

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