예제 #1
0
        public ActionResult ListePatient()
        {
            if (MySession.Login == null)
            {
                return(RedirectToRoute(new { controller = "Home", action = "Index" }));
            }
            Medecin me = MySession.User.ConvertMedecin();

            return(View(me.MesPatients()));
        }
예제 #2
0
        public ActionResult ListPatient()
        {
            //Si on n'est pas loggué, on redirige vers la home
            if (MySession.Login == null)
            {
                return(RedirectToRoute(
                           new { controller = "Home", action = "Index" }));
            }
            Medecin me = MySession.User.ConvertMedecin();

            return(View(me.MesPatients()));
        }