public ActionResult Index(recherche r) { recherche ch = new recherche(); ch = r.find(r.chaine); return(View(ch)); }
// GET: Recherche public ActionResult Index() { if (Session["user"] == null) { return(RedirectToAction("Index", "Home")); } if ((Session["user"] as Utilisateur).EtatUser == "employerAgence") { return(RedirectToAction("InvalidAccess", "Home")); } recherche r = new recherche(); return(View(r)); }