public ActionResult DeleteConfirmed(int id)
        {
            STAFFLOOKUP sTAFFLOOKUP = db.STAFFLOOKUPs.Find(id);

            db.STAFFLOOKUPs.Remove(sTAFFLOOKUP);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,EmployeeType")] STAFFLOOKUP sTAFFLOOKUP)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sTAFFLOOKUP).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sTAFFLOOKUP));
 }
        public ActionResult Create([Bind(Include = "ID,EmployeeType")] STAFFLOOKUP sTAFFLOOKUP)
        {
            if (ModelState.IsValid)
            {
                db.STAFFLOOKUPs.Add(sTAFFLOOKUP);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sTAFFLOOKUP));
        }
        // GET: StaffLookup/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            STAFFLOOKUP sTAFFLOOKUP = db.STAFFLOOKUPs.Find(id);

            if (sTAFFLOOKUP == null)
            {
                return(HttpNotFound());
            }
            return(View(sTAFFLOOKUP));
        }