public ActionResult AjouterTypeProjet(type_projet typeProj)
 {
     if (ModelState.IsValid)
     {
         if (dal.CreerTypeProjet(typeProj.type, typeProj.libelle))
         {
             return(RedirectToAction("AfficheTypeProjet"));
             // return Redirect("/");
         }
         ModelState.AddModelError("type", "Type de projet déjà existant !");
     }
     return(View(typeProj));
 }
        public ActionResult ModifierTypeProjet(string id)
        {
            if (!ChkAdmin())
            {
                return(View("ErreurNotAdm"));
            }



            type_projet typeproj = dal.ObtenirTypeProjet(id);

            if (typeproj == null)
            {
                return(View("Erreur"));
            }

            return(View(typeproj));
        }
 public ActionResult ModifierTypeProjet(type_projet typeProj)
 {
     dal.ModifierTypeProjet(typeProj.type, typeProj.libelle);
     return(RedirectToAction("AfficheTypeProjet"));
 }