public ActionResult Edit([Bind(Include = "musteriNo,TCKN,sifre,isim,soyisim,cinsiyet,dogumTarihi,kizlikSoyadi,musteriTipi,musteriPuani")] tbl_Musteriler tbl_Musteriler) { if (ModelState.IsValid) { db.Entry(tbl_Musteriler).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tbl_Musteriler)); }
public ActionResult Edit([Bind(Include = "hesapId,IBAN,musteriNo,hesapNumarasi,aktiflik,hesapTipi,bakiye,paraTipi,krediLimiti,hesapAcilisTarihi,hesapKapanisTarihi,hesapPuani,ekNo")] tbl_Hesaplar tbl_Hesaplar) { if (ModelState.IsValid) { db.Entry(tbl_Hesaplar).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.musteriNo = new SelectList(db.tbl_Musteriler, "musteriNo", "TCKN", tbl_Hesaplar.musteriNo); return(View(tbl_Hesaplar)); }