public ActionResult Edit([Bind(Include = "Id,Title,Category")] Book book) { if (ModelState.IsValid) { db.Entry(book).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(book)); }
public void Edit(Sach sp) { db.Entry(sp).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }
public void Edit(TheLoai theLoai) { db.Entry(theLoai).State = EntityState.Modified; db.SaveChanges(); }
public void Edit(DanhMuc dm) { db.Entry(dm).State = EntityState.Modified; db.SaveChanges(); }
public void Edit(TaiKhoan taiKhoan) { db.Entry(taiKhoan).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }
public void Edit(TacGia tacGia) { db.Entry(tacGia).State = EntityState.Modified; db.SaveChanges(); }
public void Edit(NXB nXB) { db.Entry(nXB).State = EntityState.Modified; db.SaveChanges(); }