public Book GetByISBN(string isbn) { return(Books.Find(x => x.ISBN == isbn)); }
public void Delete(Book book) { Books.Remove(book); }
public Book Find(Book book) { return(Books.Find(x => x.Title == book.Title)); }
public IEnumerable <Book> GetAll() { return(Books.ToArray()); }
public void Add(Book book) { book.Id = Guid.NewGuid(); Books.Add(book); }
public Book GetById(Guid id) { return(Books.Find(x => x.Id == id)); }