SyntaxFix
Write A Post
Hire A Developer
Questions
You should remove db.Books.Attach(book);
db.Books.Attach(book);