예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            induction_training induction_training = db.induction_training.Find(id);

            db.induction_training.Remove(induction_training);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Id,employee_id,C1a,C2a,C3a,C4a,C5a,C6a,C7a,C8a,C9a")] induction_training induction_training)
 {
     if (ModelState.IsValid)
     {
         db.Entry(induction_training).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", induction_training.employee_id);
     return(View(induction_training));
 }
예제 #3
0
        // GET: induction_training/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            induction_training induction_training = db.induction_training.Find(id);

            if (induction_training == null)
            {
                return(HttpNotFound());
            }
            return(View(induction_training));
        }
예제 #4
0
        // GET: induction_training/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            induction_training induction_training = db.induction_training.Find(id);

            if (induction_training == null)
            {
                return(HttpNotFound());
            }
            ViewBag.employee_id = new SelectList(db.master_file, "employee_id", "employee_name", induction_training.employee_id);
            return(View(induction_training));
        }