Exemplo n.º 1
0
 public ActionResult SeLogger(string txtLogin, string txtPassword)
 {
     if (SessionTools.Login == null)
     {
         Journalist j = Journalist.AuthentifieMoi(txtLogin, txtPassword);
         if (j == null)
         {
             return(View());
         }
         else
         {
             SessionTools.Login      = txtLogin;
             SessionTools.Journalist = j;
         }
     }
     return(RedirectToRoute(new { controller = "Home", action = "Index", area = "" }));
 }