public ActionResult DeleteConfirmed(string id)
        {
            TblDocent tblDocent = db.TblDocent.Find(id);

            db.TblDocent.Remove(tblDocent);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Afkorting,Aanhef,Voorletters,GebruikersId")] TblDocent tblDocent)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblDocent).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblDocent));
 }
        public ActionResult Create([Bind(Include = "Afkorting,Aanhef,Voorletters,GebruikersId")] TblDocent tblDocent)
        {
            if (ModelState.IsValid)
            {
                db.TblDocent.Add(tblDocent);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tblDocent));
        }
        // GET: Docent/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TblDocent tblDocent = db.TblDocent.Find(id);

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