public ActionResult Edit([Bind(Include = "TrainingStaffID,TrainingStaffUserID,TrainingStaffName,TrainingStaffDes")] TrainingStaff trainingStaff) { if (ModelState.IsValid) { db.Entry(trainingStaff).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainingStaff)); }
public ActionResult Edit([Bind(Include = "CourseID,CourseName,CourseDescription,Credit")] Course course) { if (ModelState.IsValid) { db.Entry(course).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(course)); }
public ActionResult Edit([Bind(Include = "TrainerID,TrainerName,WorkingPlace,Telephone,Email")] Trainer trainer) { if (ModelState.IsValid) { db.Entry(trainer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainer)); }
public ActionResult Edit([Bind(Include = "TraineeID,TraineeName,TraineeAge,TraineeProgrammingLanguage,TraineeDoB,TraineePhone,TraineeAddress")] Trainee trainee) { if (ModelState.IsValid) { db.Entry(trainee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainee)); }
public ActionResult Edit([Bind(Include = "TraineeID,TraineeUserID,TraineeName,TraineeAccount,DOB,Education,MPL,TOEIC_score,ExDetail,Department,Location")] Trainee trainee) { if (ModelState.IsValid) { db.Entry(trainee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainee)); }
public ActionResult Edit([Bind(Include = "TraineeID,TraineeName,DoB,Education,Program_Language,TOEIC,ExperienceYear,Address")] Trainee trainee) { if (ModelState.IsValid) { db.Entry(trainee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(trainee)); }
public ActionResult Edit([Bind(Include = "CategoryID,CategoryName")] Category category) { if (ModelState.IsValid) { db.Entry(category).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(category)); }
public ActionResult Edit([Bind(Include = "TopicID,TopicName,TopicDescription")] Topic topic) { if (ModelState.IsValid) { db.Entry(topic).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(topic)); }
public ActionResult Edit([Bind(Include = "TopicID,TopicName,TopicDescription,TrainerID")] Topic topic) { if (ModelState.IsValid) { db.Entry(topic).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.TrainerID = new SelectList(db.Trainers, "TrainerID", "TrainerName", topic.TrainerID); return(View(topic)); }
public ActionResult Edit([Bind(Include = "CourseID,CourseName,CategoryID")] Course course) { if (ModelState.IsValid) { db.Entry(course).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CategoryID = new SelectList(db.Categories, "CategoryID", "CategoryName", course.CategoryID); return(View(course)); }
public ActionResult Edit([Bind(Include = "EnrollmentID,CourseID,TraineeID")] Enrollment enrollment) { if (ModelState.IsValid) { db.Entry(enrollment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CourseID = new SelectList(db.Courses, "CourseID", "CourseName", enrollment.CourseID); ViewBag.TraineeID = new SelectList(db.Trainees, "TraineeID", "TraineeName", enrollment.TraineeID); return(View(enrollment)); }
public ActionResult Edit([Bind(Include = "TrainingManagingID,TrainingStaffID,TraineeID,CourseCateID,CourseID,TopicID,TrainerID")] TrainningManaging trainningManaging) { if (ModelState.IsValid) { db.Entry(trainningManaging).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CourseID = new SelectList(db.Courses, "CourseID", "CourseName", trainningManaging.CourseID); ViewBag.CourseCateID = new SelectList(db.CourseCates, "CourseCateID", "CourseCateName", trainningManaging.CourseCateID); ViewBag.TopicID = new SelectList(db.Topics, "TopicID", "TopicName", trainningManaging.TopicID); ViewBag.TraineeID = new SelectList(db.Trainees, "TraineeID", "TraineeUserID", trainningManaging.TraineeID); ViewBag.TrainerID = new SelectList(db.Trainers, "TrainerID", "TrainerUserID", trainningManaging.TrainerID); ViewBag.TrainingStaffID = new SelectList(db.TrainingStaffs, "TrainingStaffID", "TrainingStaffUserID", trainningManaging.TrainingStaffID); return(View(trainningManaging)); }