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")); } }
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")); } }