public ActionResult Edit([Bind(Include = "manxb,tennxb,diachi,dienthoai")] Nhaxuatban nhaxuatban) { if (ModelState.IsValid) { db.Entry(nhaxuatban).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nhaxuatban)); }
public ActionResult Edit([Bind(Include = "matacgia,tentacgia,diachi,dienthoai")] Tacgia tacgia) { if (ModelState.IsValid) { db.Entry(tacgia).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tacgia)); }
public ActionResult Edit([Bind(Include = "machude,tenchude")] Chude chude) { if (ModelState.IsValid) { db.Entry(chude).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(chude)); }
public ActionResult Edit([Bind(Include = "ArticleID,Author,Content")] Article article) { if (ModelState.IsValid) { db.Entry(article).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(article)); }
public ActionResult Edit([Bind(Include = "makh,tenkh,taikhoan,matkhau,email,diachi,dienthoai")] Khachhang khachhang) { if (ModelState.IsValid) { db.Entry(khachhang).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(khachhang)); }
public ActionResult Edit([Bind(Include = "madh,tinhtrangdonhang,ngaydat,ngaygiao,makh")] Donhang donhang) { if (ModelState.IsValid) { db.Entry(donhang).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.makh = new SelectList(db.Khachhangs, "makh", "tenkh", donhang.makh); return(View(donhang)); }
public ActionResult Edit([Bind(Include = "masach,tensach,giaban,mota,anhbia,ngaycapnhat,soluongton,machude,manxb")] Sach sach) { if (ModelState.IsValid) { db.Entry(sach).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.machude = new SelectList(db.Chudes, "machude", "tenchude", sach.machude); ViewBag.manxb = new SelectList(db.Nhaxuatbans, "manxb", "tennxb", sach.manxb); return(View(sach)); }
public ActionResult Edit([Bind(Include = "soluong,dongia,madh,masach")] Chitietdonhang chitietdonhang) { if (ModelState.IsValid) { db.Entry(chitietdonhang).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.madh = new SelectList(db.Donhangs, "madh", "tinhtrangdonhang", chitietdonhang.madh); ViewBag.masach = new SelectList(db.Sachs, "masach", "tensach", chitietdonhang.masach); return(View(chitietdonhang)); }