예제 #1
0
 public ActionResult afficherFidelite(int FideliteId)
 {
     if (Convert.ToInt32(Session["RoleId"]) == 2)
     {
         var res = iadmin.afficherFidelite(FideliteId);
         return(View(res));
     }
     else
     {
         return(RedirectToAction("loginAdmin"));
     }
 }
        public ActionResult afficherFidelite(int FideliteId)
        {
            var roleid = (int)(Session["RoleId"]);

            if ((Session["UtilisateurId"] != null) && (roleid == 2))
            {
                var res = iadmin.afficherFidelite(FideliteId);
                return(View(res));
            }
            else
            {
                return(RedirectToAction("loginAdmin"));
            }
        }