public ActionResult <BookModel> UpdateBook(BookModel changes) { var book = new Book() { Id = changes.Id, Title = changes.Title }; _context.Update(book); _context.SaveChanges(); return(changes); }