Ejemplo n.º 1
0
        public ActionResult Index(recherche r)
        {
            recherche ch = new recherche();

            ch = r.find(r.chaine);

            return(View(ch));
        }
Ejemplo n.º 2
0
        // 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));
        }