public ActionResult Edit([Bind(Include = "ID,ParentID,Name,IsActive,CreateDate,UpdateDate,CreateUserID,UpdateUserID")] DanceType danceType) { if (ModelState.IsValid) { db.Entry(danceType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(danceType)); }
public ActionResult Edit([Bind(Include = "ID,Name,LastName,Email,Telephone,Password,TcNo,IsActive,ISAdmin,CreateDate,UpdateDate,CreateUserID,UpdateUserID")] User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }
public ActionResult Edit([Bind(Include = "ID,Name,DanceTypeID,Trainer,ImageUrl,VideoUrl,Description,Price,Tax,Discount,Kontenjan,IsActive,CreateDate,CreateUserID,UpdateDate,UpdateUserID")] DanceLesson danceLesson) { if (ModelState.IsValid) { db.Entry(danceLesson).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DanceTypeID = new SelectList(db.DanceTypes, "ID", "Name", danceLesson.DanceTypeID); return(View(danceLesson)); }