public ActionResult DeleteConfirmed(int id) { Training_Effectiveness training_Effectiveness = db.Training_Effectiveness.Find(id); db.Training_Effectiveness.Remove(training_Effectiveness); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Employee_id,traning_prog,traning_date,line_manager,prog_objective,emp_work_per,emp_work_att,emp_work_team,RC_otheremp,RC_FDporg,comments")] Training_Effectiveness training_Effectiveness) { if (ModelState.IsValid) { db.Entry(training_Effectiveness).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Employee_id = new SelectList(db.master_file, "employee_id", "employee_name", training_Effectiveness.Employee_id); return(View(training_Effectiveness)); }
// GET: Training_Effectiveness/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Training_Effectiveness training_Effectiveness = db.Training_Effectiveness.Find(id); if (training_Effectiveness == null) { return(HttpNotFound()); } return(View(training_Effectiveness)); }
// GET: Training_Effectiveness/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Training_Effectiveness training_Effectiveness = db.Training_Effectiveness.Find(id); if (training_Effectiveness == null) { return(HttpNotFound()); } ViewBag.Employee_id = new SelectList(db.master_file, "employee_id", "employee_name", training_Effectiveness.Employee_id); return(View(training_Effectiveness)); }