public ActionResult DeleteConfirmed(int id)
        {
            Comitee comitee = db.Comitees.Find(id);

            db.Comitees.Remove(comitee);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name")] Comitee comitee)
 {
     if (ModelState.IsValid)
     {
         db.Entry(comitee).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(comitee));
 }
        public ActionResult Create([Bind(Include = "Id,Name")] Comitee comitee)
        {
            if (ModelState.IsValid)
            {
                db.Comitees.Add(comitee);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(comitee));
        }
        // GET: Comitees/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Comitee comitee = db.Comitees.Find(id);

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