Example #1
0
        public void Remove(int id)
        {
            Book book = Get(id);

            data.Remove(book);
        }
Example #2
0
 public Book Add(Book newBook)
 {
     newBook.BookId = data.Count + 1;
     data.Add(newBook);
     return(newBook);
 }