public ActionResult Edit([Bind(Include = "Id,KonuId,Sorusu")] Soru soru) { if (ModelState.IsValid) { db.Entry(soru).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(soru)); }
public ActionResult Edit([Bind(Include = "Id,Ad,SoruSayisi,SureDk")] Konu konu) { if (ModelState.IsValid) { db.Entry(konu).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(konu)); }
public ActionResult Edit([Bind(Include = "Id,SoruId,Dogrumu,Cevabi")] Cevap cevap) { if (ModelState.IsValid) { db.Entry(cevap).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cevap)); }