Пример #1
0
 public ActionResult Autenticar(Usuario u)
 {
     try
     {
         Usuario user = UsuarioDTO.VerificaUsuario(u);
         Session["Auth"] = user;
         return(RedirectToAction("", "", null));
     } catch (Exception e)
     {
         MakeError(e.Message);
         return(RedirectToAction("Login"));
     }
 }