예제 #1
0
 public void AddBook(Book book)
 {
     if(!_bookList.Contains(book))
     {
         _bookList.ToList().Add(book);
     }
 }
예제 #2
0
 public void UpdateBook(Book book)
 {
     if(!_bookList.Contains(book))
     {
         _bookList.ToList().Add(book);
     }
     else
     {
         _bookList.ToList().Remove(book);
         _bookList.ToList().Add(book)
     }
 }