public void Remove(int id) { Book book = Get(id); data.Remove(book); }
public Book Add(Book newBook) { newBook.BookId = data.Count + 1; data.Add(newBook); return(newBook); }