Exemple #1
0
        public bool Update(Book book)
        {
            var b = Get(book.Id);

            return(b != null && Books.Remove(b) && Books.Add(book));
        }
Exemple #2
0
 public bool Add(Book book) => Books.Add(book);