public ActionResult Edit([Bind(Include = "UserId,UserName,UserPassword,IsAdmin")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }
public ActionResult Edit([Bind(Include = "AracId,AracModel,AracFiyat,AracTuru")] Arac arac) { if (ModelState.IsValid) { db.Entry(arac).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(arac)); }
public ActionResult Edit([Bind(Include = "SepetUserID,SepetAracId,SepetAlimTarihi,SepetTeslimTarihi,SepetID")] Sepet sepet) { if (ModelState.IsValid) { db.Entry(sepet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.SepetAracId = new SelectList(db.Arac, "AracId", "AracModel", sepet.SepetAracId); ViewBag.SepetUserID = new SelectList(db.User, "UserId", "UserName", sepet.SepetUserID); return(View(sepet)); }