Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "BookID,BookName,BookIntroduction,BookPrice,BookCoverImage,Bookauthor,BookPublisher,YearReleased,BookForm,BookLanguage,BookAddedDate,BookModifiedDate")] BookInformationModel bookInformationModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bookInformationModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bookInformationModel));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "CategoryID,CategoryName")] BookCategoriesModel bookCategoriesModel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bookCategoriesModel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bookCategoriesModel));
 }