public ActionResult ListePatient() { if (MySession.Login == null) { return(RedirectToRoute(new { controller = "Home", action = "Index" })); } Medecin me = MySession.User.ConvertMedecin(); return(View(me.MesPatients())); }
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())); }