public void SaveChanges() { var updates = Books.Where(b => b.HasChanges); var newBooks = Books.Where(b => b.IsNew).Select(b => b.ToBook()); _booksRepository.AddBooks(newBooks); }