Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 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));
 }