public bool Update(Book book) { var b = Get(book.Id); return(b != null && Books.Remove(b) && Books.Add(book)); }
public bool Add(Book book) => Books.Add(book);