Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        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"));
        }
Esempio n. 3
0
 public void Edit(T obj)
 {
     obj.Validate();
     table.Attach(obj);
     db.Entry(obj).State = EntityState.Modified;
 }