public ActionResult Edit([Bind(Include = "BOOKID,BOOKNAME,AUTHOR,ISBN")] BOOKS bOOKS) { if (ModelState.IsValid) { db.Entry(bOOKS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bOOKS)); }
public ActionResult Edit([Bind(Include = "Id,Name,Description,Price,Category")] Books books) { if (ModelState.IsValid) { db.Entry(books).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(books)); }