public ActionResult DeleteConfirmed(int id) { PROBATION_ASSESSMENT pROBATION_ASSESSMENT = db.PROBATION_ASSESSMENT.Find(id); db.PROBATION_ASSESSMENT.Remove(pROBATION_ASSESSMENT); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,employee_id,Knowledge_of_job,Quality_of_work,Achievement_Oriented,Ability_To_Learn,Work_Attitude_and_Co_operation,Ability_To_work_Independently,Reliability,Initiative,employee_excels,improvement_,C_success_and_strengths,further_development,support,Comments,confirming,Line_Managers_Comments,Directors_Comments")] PROBATION_ASSESSMENT pROBATION_ASSESSMENT) { if (ModelState.IsValid) { db.Entry(pROBATION_ASSESSMENT).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", pROBATION_ASSESSMENT.employee_id); return(View(pROBATION_ASSESSMENT)); }
// GET: PROBATION_ASSESSMENT/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PROBATION_ASSESSMENT pROBATION_ASSESSMENT = db.PROBATION_ASSESSMENT.Find(id); if (pROBATION_ASSESSMENT == null) { return(HttpNotFound()); } return(View(pROBATION_ASSESSMENT)); }
// GET: PROBATION_ASSESSMENT/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PROBATION_ASSESSMENT pROBATION_ASSESSMENT = db.PROBATION_ASSESSMENT.Find(id); if (pROBATION_ASSESSMENT == null) { return(HttpNotFound()); } ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", pROBATION_ASSESSMENT.employee_id); return(View(pROBATION_ASSESSMENT)); }