public ActionResult Create(Notities Notitie)
 {
     if (ModelState.IsValid)
     {
         db.Notities.Add(Notitie);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.NotitieGroupId = new SelectList(db.NotitieGroups, "NotitieGroupId", "NotitieGroup", Notitie.NotitieGroupId);
     return View(Notitie);
 }
 public ActionResult Edit(Notities Notitie)
 {
     Notitie.NotitieId = (int)Session["NotitieId"];
     if (ModelState.IsValid)
     {
         db.Entry(Notitie).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.NotitieGroupId = new SelectList(db.NotitieGroups, "NotitieGroupId", "NotitieGroup", Notitie.NotitieGroupId);
     return View(Notitie);
 }