public IActionResult Corbeil3()
 {
     if (isAdmin())
     {
         var x = corbeil.afficheCorbeil(3);
         return(View(x));
     }
     return(RedirectToAction("Login", "AdminAuth"));
 }
Exemple #2
0
 public ActionResult Corbeil()
 {
     if (Session["admin"] != null)
     {
         if (Session["admin"].Equals(true))
         {
             var x = corbeil.afficheCorbeil(3);
             return(View(x));
         }
     }
     return(RedirectToAction("Login", "AdminAuth"));
 }