public ActionResult Edit([Bind(Include = "UyeId,Ad,Soyad,EPosta")] Uye uye) { if (ModelState.IsValid) { db.Entry(uye).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(uye)); }
public ActionResult Edit(Resim model) { if (ModelState.IsValid) { dbcontext.Resims.Attach(model); dbcontext.Entry(model).State = System.Data.Entity.EntityState.Modified; dbcontext.SaveChanges(); } return(RedirectToAction("Index")); }
public void Edit(T obj) { obj.Validate(); table.Attach(obj); db.Entry(obj).State = EntityState.Modified; }