public ActionResult DeleteConfirmed(int id)
        {
            Werkvorm werkvorm = db.GetFromDatabase <Werkvorm>(id);

            werkvorm.IsDeleted = true;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Naam")] Werkvorm werkvorm)
 {
     if (ModelState.IsValid)
     {
         db.Entry(werkvorm).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(werkvorm));
 }
        public ActionResult Create([Bind(Include = "Id,Naam")] Werkvorm werkvorm)
        {
            if (ModelState.IsValid)
            {
                db.Werkvormen.Add(werkvorm);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(werkvorm));
        }
        // GET: Werkvorm/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Werkvorm werkvorm = db.GetFromDatabase <Werkvorm>(id);

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