public ActionResult Edit([Bind(Include = "Id,Isim")] Kategori kategori) { if (ModelState.IsValid) { _context.Entry(kategori).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(kategori)); }
public ActionResult Edit([Bind(Include = "Id,KullaniciAdi,Email,Sifre,AdSoyad,Foto,YetkiId")] Uye uye) { if (ModelState.IsValid) { _context.Entry(uye).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.YetkiId = new SelectList(_context.Yetki, "Id", "Yetki1", uye.YetkiId); return(View(uye)); }
public ActionResult Edit([Bind(Include = "Id,Icerik,UyeId,MakaleId,Tarih")] Yorum yorum) { if (ModelState.IsValid) { _context.Entry(yorum).State = EntityState.Modified; _context.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.MakaleId = new SelectList(_context.Makale, "Id", "Baslik", yorum.MakaleId); ViewBag.UyeId = new SelectList(_context.Uye, "Id", "KullaniciAdi", yorum.UyeId); return(View(yorum)); }