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