Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(string id)
        {
            TblDocent tblDocent = db.TblDocent.Find(id);

            db.TblDocent.Remove(tblDocent);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
        // 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));
        }