Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public void Edit(Sach sp)
 {
     db.Entry(sp).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 3
0
 public void Edit(TheLoai theLoai)
 {
     db.Entry(theLoai).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 4
0
 public void Edit(DanhMuc dm)
 {
     db.Entry(dm).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 5
0
 public void Edit(TaiKhoan taiKhoan)
 {
     db.Entry(taiKhoan).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 6
0
 public void Edit(TacGia tacGia)
 {
     db.Entry(tacGia).State = EntityState.Modified;
     db.SaveChanges();
 }
Exemplo n.º 7
0
 public void Edit(NXB nXB)
 {
     db.Entry(nXB).State = EntityState.Modified;
     db.SaveChanges();
 }